Skip to content

Commit 12ab114

Browse files
author
meow
committed
fix double variable declaration
1 parent 352f364 commit 12ab114

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

assets/js/embed.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ function get_playlist(plid, retries) {
99
return;
1010
}
1111

12+
var plid_url;
1213
if (plid.startsWith('RD')) {
13-
var plid_url = '/api/v1/mixes/' + plid +
14+
plid_url = '/api/v1/mixes/' + plid +
1415
'?continuation=' + video_data.id +
1516
'&format=html&hl=' + video_data.preferences.locale;
1617
} else {
17-
var plid_url = '/api/v1/playlists/' + plid +
18+
plid_url = '/api/v1/playlists/' + plid +
1819
'?index=' + video_data.index +
1920
'&continuation' + video_data.id +
2021
'&format=html&hl=' + video_data.preferences.locale;

assets/js/watch.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,13 @@ function get_playlist(plid, retries) {
130130
<h3 style="text-align:center"><div class="loading"><i class="icon ion-ios-refresh"></i></div></h3> \
131131
<hr>';
132132

133+
var plid_url;
133134
if (plid.startsWith('RD')) {
134-
var plid_url = '/api/v1/mixes/' + plid +
135+
plid_url = '/api/v1/mixes/' + plid +
135136
'?continuation=' + video_data.id +
136137
'&format=html&hl=' + video_data.preferences.locale;
137138
} else {
138-
var plid_url = '/api/v1/playlists/' + plid +
139+
plid_url = '/api/v1/playlists/' + plid +
139140
'?index=' + video_data.index +
140141
'&continuation=' + video_data.id +
141142
'&format=html&hl=' + video_data.preferences.locale;

0 commit comments

Comments
 (0)