Skip to main content

yt-dlp: fix a urllib.parse mistake

ID
2b28cab
date
2026-05-14 05:50:37+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
eebe395
message
yt-dlp: fix a urllib.parse mistake
changed files
1 file, 2 additions, 2 deletions

Changed files

web/yt-dlp.py (4016) → web/yt-dlp.py (4016)

diff --git a/web/yt-dlp.py b/web/yt-dlp.py
index 194fdab..ab609e2 100755
--- a/web/yt-dlp.py
+++ b/web/yt-dlp.py
@@ -32,10 +32,10 @@ def is_youtube_playlist(url: str) -> bool:
     u = urllib.parse.urlsplit(url)
     assert "youtube.com" in u.netloc
 
-    query = urllib.parse_qs(u.query)
+    query = urllib.parse.parse_qs(u.query)
 
     # Look for a non-empty playlist which isn't WL (Watch Later)
-    return bool(query.get("list") and u.get("list") != ["WL"])
+    return bool(query.get("list") and u["list"] != "WL")
 
 
 def get_playlist_video_ids(youtube_url: str) -> Iterator[str]: