From 23abc545d28e5d7dfd1e1cdc33bcdfa22984d16f Mon Sep 17 00:00:00 2001 From: tcely Date: Fri, 7 Feb 2025 15:34:24 -0500 Subject: [PATCH] Replace '100%' with the calculated percent --- tubesync/sync/hooks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tubesync/sync/hooks.py b/tubesync/sync/hooks.py index b03f7128..3c506eb7 100644 --- a/tubesync/sync/hooks.py +++ b/tubesync/sync/hooks.py @@ -116,6 +116,7 @@ def yt_dlp_progress_hook(event): pass if fragment_index > 0 and fragment_count > 0: percent = round(100 * fragment_index / fragment_count) + percent_str = f'{percent}%' elif downloaded_bytes > 0 and total_bytes > 0: percent = round(100 * downloaded_bytes / total_bytes) if percent and (status.next_progress() < percent) and (0 == percent % 5):