From 88ebb6d648cddef339613e37e535ffe9a96cd6f2 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 18 Dec 2021 17:05:49 +0700 Subject: [PATCH] fix autodelete error on empty download queue --- tubearchivist/home/src/download.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tubearchivist/home/src/download.py b/tubearchivist/home/src/download.py index 454d3ef..8e7819d 100644 --- a/tubearchivist/home/src/download.py +++ b/tubearchivist/home/src/download.py @@ -794,6 +794,8 @@ class VideoDownloader: } all_to_delete = IndexPaginate("ta_video", data).get_results() all_youtube_ids = [i["youtube_id"] for i in all_to_delete] + if not all_youtube_ids: + return for youtube_id in all_youtube_ids: print(f"autodelete {youtube_id}")