Skip to content

Commit 6098948

Browse files
committed
ignore none videos yt links
1 parent 073a93a commit 6098948

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/playvideos/youtube_playlist.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ class PlayVideos {
2626
if (!$elm.getAttribute('href').match(regEx)) {
2727
return;
2828
}
29+
2930
const n = $elm.href.replace(/^.*v=/, '').replace(/&.*$/, '');
30-
ids.push(n);
31+
32+
if (n.indexOf('http') === -1) {
33+
ids.push(n);
34+
}
3135
});
3236

3337
// remove duplicates

0 commit comments

Comments
 (0)