Skip to main content

Fix this comparison; fix formatting

ID
069827e
date
2025-11-02 22:50:30+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
aec0148
message
Fix this comparison; fix formatting
changed files
1 file, 2 additions, 2 deletions

Changed files

web/yt-dlp.py (4005) → web/yt-dlp.py (4003)

diff --git a/web/yt-dlp.py b/web/yt-dlp.py
index 522c1d4..25fad21 100755
--- a/web/yt-dlp.py
+++ b/web/yt-dlp.py
@@ -32,9 +32,9 @@ def is_youtube_playlist(url: str) -> bool:
     """
     u = hyperlink.DecodedURL.from_text(url)
     assert "youtube.com" in u.host
-    
+
     # Look for a non-empty playlist which isn't WL (Watch Later)
-    return bool(u.get("list")) and u.get("list") != "WL"
+    return bool(u.get("list")) and u.get("list") != ["WL"]
 
 
 def get_playlist_video_ids(youtube_url: str) -> Iterator[str]: