1
0
mirror of https://github.com/darkzoul5/YoutubePlaylistSync.git synced 2026-07-03 12:34:00 +03:00

Improve private playlist detection heuristics in PlaylistDownloader

This commit is contained in:
2025-10-15 21:29:02 +03:00
parent 93cd9a0fe0
commit e1278308d1
+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 []