Add support for custom playlists

This commit is contained in:
Omar Roth 2019-08-05 18:49:13 -05:00
parent 1e34a61911
commit be055d9dcb
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2
40 changed files with 1802 additions and 245 deletions

View file

@ -133,7 +133,8 @@ function get_playlist(plid, retries) {
'&format=html&hl=' + video_data.preferences.locale;
} else {
var plid_url = '/api/v1/playlists/' + plid +
'?continuation=' + video_data.id +
'?index=' + video_data.index +
'&continuation=' + video_data.id +
'&format=html&hl=' + video_data.preferences.locale;
}
@ -168,6 +169,9 @@ function get_playlist(plid, retries) {
}
url.searchParams.set('list', plid);
if (!plid.startsWith('RD')) {
url.searchParams.set('index', xhr.response.index);
}
location.assign(url.pathname + url.search);
});
}