diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-08-05 18:49:13 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-10-15 21:17:14 -0400 |
| commit | be055d9dcb31fe64cb682d50dc70101484605741 (patch) | |
| tree | 5e0f15a15a5ceabcff4b5cbc3046bcfb2e0771f4 /assets/js/watch.js | |
| parent | 1e34a61911bf786497793b6fe3f309a411a32aae (diff) | |
| download | invidious-be055d9dcb31fe64cb682d50dc70101484605741.tar.gz invidious-be055d9dcb31fe64cb682d50dc70101484605741.tar.bz2 invidious-be055d9dcb31fe64cb682d50dc70101484605741.zip | |
Add support for custom playlists
Diffstat (limited to 'assets/js/watch.js')
| -rw-r--r-- | assets/js/watch.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/assets/js/watch.js b/assets/js/watch.js index 0f3e8123..80cb1769 100644 --- a/assets/js/watch.js +++ b/assets/js/watch.js @@ -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); }); } |
