add video id to processing message

This commit is contained in:
simon 2023-04-09 12:42:46 +07:00
parent 0750547236
commit a924d648d6
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 12 additions and 2 deletions

View File

@ -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)