Sometimes yt-dlp doesn't provide playlist_count, so we need to have fallback. Fixes #384
This commit is contained in:
parent
30830a94e8
commit
3adc4eb062
1 changed files with 3 additions and 1 deletions
|
|
@ -307,7 +307,9 @@ class DownloadQueue(metaclass=Singleton):
|
|||
|
||||
LOG.info(f"Processing '{entry.get('id')}: {entry.get('title')} ({len(entries)})' Playlist.")
|
||||
|
||||
playlistCount = int(entry.get("playlist_count", len(entries)))
|
||||
playlistCount = entry.get("playlist_count")
|
||||
playlistCount = int(playlistCount) if playlistCount else len(entries)
|
||||
|
||||
results = []
|
||||
|
||||
playlist_keys = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue