move up notification for faster feedback

This commit is contained in:
simon 2023-03-04 16:45:14 +07:00
parent 72e5d7ccf8
commit 87cfd9e154
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 2 deletions

View File

@ -230,6 +230,7 @@ class PendingList(PendingIndex):
for idx, (youtube_id, vid_type) in enumerate(self.missing_videos):
print(f"{youtube_id} ({vid_type}): add to download queue")
self._notify_add(idx)
video_details = self.get_youtube_details(youtube_id, vid_type)
if not video_details:
continue
@ -242,8 +243,6 @@ class PendingList(PendingIndex):
url = video_details["vid_thumb_url"]
ThumbManager(youtube_id).download_video_thumb(url)
self._notify_add(idx)
if bulk_list:
# add last newline
bulk_list.append("\n")