From ed9d5aef0a763d08adb35e02383b034a0a186cf3 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 17 Nov 2021 18:16:22 +0700 Subject: [PATCH] fix playlist get_entries when not passing all youtube_ids --- tubearchivist/home/src/index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/src/index.py b/tubearchivist/home/src/index.py index 2294f18..92117b4 100644 --- a/tubearchivist/home/src/index.py +++ b/tubearchivist/home/src/index.py @@ -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 = {