From 12ab11413f2351fd49e2a0313635a0d181db3403 Mon Sep 17 00:00:00 2001 From: meow Date: Wed, 20 Apr 2022 13:04:44 +0300 Subject: [PATCH] fix double variable declaration --- assets/js/embed.js | 5 +++-- assets/js/watch.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/js/embed.js b/assets/js/embed.js index d3c530cb0..69dcc0531 100644 --- a/assets/js/embed.js +++ b/assets/js/embed.js @@ -9,12 +9,13 @@ function get_playlist(plid, retries) { return; } + var plid_url; if (plid.startsWith('RD')) { - var plid_url = '/api/v1/mixes/' + plid + + plid_url = '/api/v1/mixes/' + plid + '?continuation=' + video_data.id + '&format=html&hl=' + video_data.preferences.locale; } else { - var plid_url = '/api/v1/playlists/' + plid + + plid_url = '/api/v1/playlists/' + plid + '?index=' + video_data.index + '&continuation' + video_data.id + '&format=html&hl=' + video_data.preferences.locale; diff --git a/assets/js/watch.js b/assets/js/watch.js index ebc779057..1066653cc 100644 --- a/assets/js/watch.js +++ b/assets/js/watch.js @@ -130,12 +130,13 @@ function get_playlist(plid, retries) {

\
'; + var plid_url; if (plid.startsWith('RD')) { - var plid_url = '/api/v1/mixes/' + plid + + plid_url = '/api/v1/mixes/' + plid + '?continuation=' + video_data.id + '&format=html&hl=' + video_data.preferences.locale; } else { - var plid_url = '/api/v1/playlists/' + plid + + plid_url = '/api/v1/playlists/' + plid + '?index=' + video_data.index + '&continuation=' + video_data.id + '&format=html&hl=' + video_data.preferences.locale;