Ignore the Watch Later playlist
- ID
53bd778- date
2025-11-02 22:48:56+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
9e4cbc1- message
Ignore the Watch Later playlist- changed files
1 file, 3 additions, 1 deletion
Changed files
web/yt-dlp.py (3909) → web/yt-dlp.py (4005)
diff --git a/web/yt-dlp.py b/web/yt-dlp.py
index b20bac1..522c1d4 100755
--- a/web/yt-dlp.py
+++ b/web/yt-dlp.py
@@ -32,7 +32,9 @@ def is_youtube_playlist(url: str) -> bool:
"""
u = hyperlink.DecodedURL.from_text(url)
assert "youtube.com" in u.host
- return bool(u.get("list"))
+
+ # Look for a non-empty playlist which isn't WL (Watch Later)
+ return bool(u.get("list")) and u.get("list") != "WL"
def get_playlist_video_ids(youtube_url: str) -> Iterator[str]: