From e858bba944f7773254bef40a041434b51699264d Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 16 Dec 2021 12:48:12 +0700 Subject: [PATCH] fix linting, update doc string --- tubearchivist/home/src/download.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tubearchivist/home/src/download.py b/tubearchivist/home/src/download.py index 1d34128..2fa6f4e 100644 --- a/tubearchivist/home/src/download.py +++ b/tubearchivist/home/src/download.py @@ -2,6 +2,7 @@ Functionality: - handele the download queue - manage subscriptions to channels +- manage subscriptions to playlists - downloading videos """ @@ -786,11 +787,11 @@ class VideoDownloader: now_lte = now - autodelete_days * 24 * 60 * 60 data = { "query": {"range": {"player.watched_date": {"lte": now_lte}}}, - "sort": [{"player.watched_date": {"order": "asc"}}] + "sort": [{"player.watched_date": {"order": "asc"}}], } all_to_delete = IndexPaginate("ta_video", data).get_results() - for to_delete in all_to_delete: + for to_delete in all_to_delete: youtube_id = to_delete["youtube_id"] print(f"autodelete {youtube_id}") YoutubeVideo(youtube_id).delete_media_file()