From afa5ec8684cb3919261faf7262d201a0c4f53cd7 Mon Sep 17 00:00:00 2001 From: tcely Date: Fri, 7 Feb 2025 04:45:11 -0500 Subject: [PATCH] fixup: it is `status` not `self` needed here --- tubesync/sync/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/sync/hooks.py b/tubesync/sync/hooks.py index e3f55557..c6fddb70 100644 --- a/tubesync/sync/hooks.py +++ b/tubesync/sync/hooks.py @@ -115,7 +115,7 @@ def yt_dlp_progress_hook(event): pass if downloaded_bytes > 0 and total_bytes > 0: 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 log.info(f'[youtube-dl] downloading: {filename} - {percent_str} ' f'of {total} at {speed}, {eta} remaining')