Skip to content

Commit 53bd778

Browse files
committed
Ignore the Watch Later playlist
1 parent 9e4cbc1 commit 53bd778

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/yt-dlp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def is_youtube_playlist(url: str) -> bool:
3232
"""
3333
u = hyperlink.DecodedURL.from_text(url)
3434
assert "youtube.com" in u.host
35-
return bool(u.get("list"))
35+
36+
# Look for a non-empty playlist which isn't WL (Watch Later)
37+
return bool(u.get("list")) and u.get("list") != "WL"
3638

3739

3840
def get_playlist_video_ids(youtube_url: str) -> Iterator[str]:

0 commit comments

Comments
 (0)