From be055d9dcb31fe64cb682d50dc70101484605741 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 5 Aug 2019 18:49:13 -0500 Subject: Add support for custom playlists --- assets/js/watch.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'assets/js/watch.js') 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); }); } -- cgit v1.2.3