fix playlist get_entries when not passing all youtube_ids

This commit is contained in:
simon 2021-11-17 18:16:22 +07:00
parent c4b0f900f8
commit ed9d5aef0a
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -516,7 +516,10 @@ class YoutubePlaylist:
for idx, entry in enumerate(playlist["entries"]):
uploader = entry["uploader"]
youtube_id = entry["id"]
downloaded = youtube_id in self.all_youtube_ids
if self.all_youtube_ids:
downloaded = youtube_id in self.all_youtube_ids
else:
downloaded = False
if not uploader:
continue
to_append = {