diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-10-15 21:29:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-15 21:29:34 -0400 |
| commit | 5c6911065845d2724c7826f3d663a6ee6c7d4774 (patch) | |
| tree | 5e0f15a15a5ceabcff4b5cbc3046bcfb2e0771f4 /assets/js/embed.js | |
| parent | 1e34a61911bf786497793b6fe3f309a411a32aae (diff) | |
| parent | be055d9dcb31fe64cb682d50dc70101484605741 (diff) | |
| download | invidious-5c6911065845d2724c7826f3d663a6ee6c7d4774.tar.gz invidious-5c6911065845d2724c7826f3d663a6ee6c7d4774.tar.bz2 invidious-5c6911065845d2724c7826f3d663a6ee6c7d4774.zip | |
Merge pull request #673 from omarroth/add-playlists
Add initial support for custom playlists
Diffstat (limited to 'assets/js/embed.js')
| -rw-r--r-- | assets/js/embed.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/assets/js/embed.js b/assets/js/embed.js index d9af1f5b..074a9d8d 100644 --- a/assets/js/embed.js +++ b/assets/js/embed.js @@ -12,7 +12,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; } @@ -45,6 +46,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); }); } |
