mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 20:00:15 +00:00
fix autodelete error on empty download queue
This commit is contained in:
parent
3015e59a29
commit
88ebb6d648
@ -794,6 +794,8 @@ class VideoDownloader:
|
|||||||
}
|
}
|
||||||
all_to_delete = IndexPaginate("ta_video", data).get_results()
|
all_to_delete = IndexPaginate("ta_video", data).get_results()
|
||||||
all_youtube_ids = [i["youtube_id"] for i in all_to_delete]
|
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:
|
for youtube_id in all_youtube_ids:
|
||||||
print(f"autodelete {youtube_id}")
|
print(f"autodelete {youtube_id}")
|
||||||
|
Loading…
Reference in New Issue
Block a user