Improve private playlist detection heuristics in PlaylistDownloader

This commit is contained in:
dark_zoul committed 2025-10-15 21:29:02 +03:00
1 parent 93cd9a0fe0
commit e1278308d1
1 file changed
+1 -1
+1 -1
View File
@@ -213,7 +213,7 @@ class PlaylistDownloader:
except subprocess.CalledProcessError as e:
stderr = (e.stderr or "").lower()
# Heuristics for private/unavailable playlists
if any(k in stderr for k in ("private playlist", "this playlist is private", "sign in", "login required", "403", "authorization failed")):
if any(k in stderr for k in ("private", "sign in", "login required", "403", "Authorization failed")):
print(f"{WARN} Playlist appears to be private or requires authentication: '{self.url}'. Skipping.")
self.skip = True
return []