mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-04 15:38:14 +02:00
Improve private playlist detection heuristics in PlaylistDownloader
This commit is contained in:
1 parent
93cd9a0fe0
commit
e1278308d1
1 file changed
+1
-1
+1
-1
@@ -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 []
|
||||
|
||||
Reference in new issue
Block a user