From a924d648d67b8dbdfa46bbd13ffacdabae2aece9 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 9 Apr 2023 12:42:46 +0700 Subject: [PATCH] add video id to processing message --- tubearchivist/home/src/download/yt_dlp_handler.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tubearchivist/home/src/download/yt_dlp_handler.py b/tubearchivist/home/src/download/yt_dlp_handler.py index fe31c03f..13678d86 100644 --- a/tubearchivist/home/src/download/yt_dlp_handler.py +++ b/tubearchivist/home/src/download/yt_dlp_handler.py @@ -189,7 +189,12 @@ class VideoDownloader: continue if self.task: - self.task.send_progress(["Add video metadata to index."]) + self.task.send_progress( + [ + f"Processing video {youtube_id}", + "Add video metadata to index.", + ] + ) vid_dict = index_new_video( youtube_id, @@ -200,7 +205,12 @@ class VideoDownloader: self.videos.add(vid_dict["youtube_id"]) if self.task: - self.task.send_progress(["Move downloaded file to archive."]) + self.task.send_progress( + [ + f"Processing video {youtube_id}", + "Move downloaded file to archive.", + ] + ) self.move_to_archive(vid_dict)