fixup: it is status not self needed here
This commit is contained in:
1 parent
09812019b5
commit
afa5ec8684
1 file changed
+1
-1
@@ -115,7 +115,7 @@ def yt_dlp_progress_hook(event):
|
|||||||
pass
|
pass
|
||||||
if downloaded_bytes > 0 and total_bytes > 0:
|
if downloaded_bytes > 0 and total_bytes > 0:
|
||||||
percent = round(100 * downloaded_bytes / total_bytes)
|
percent = round(100 * downloaded_bytes / total_bytes)
|
||||||
if percent and (self.next_progress() < percent) and (0 == percent % 5):
|
if percent and (status.next_progress() < percent) and (0 == percent % 5):
|
||||||
status.download_progress = percent
|
status.download_progress = percent
|
||||||
log.info(f'[youtube-dl] downloading: {filename} - {percent_str} '
|
log.info(f'[youtube-dl] downloading: {filename} - {percent_str} '
|
||||||
f'of {total} at {speed}, {eta} remaining')
|
f'of {total} at {speed}, {eta} remaining')
|
||||||
|
|||||||
Reference in new issue
Block a user