mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 05:26:37 +00:00
Replace '100%' with the calculated percent
This commit is contained in:
parent
90b892fd85
commit
23abc545d2
@ -116,6 +116,7 @@ def yt_dlp_progress_hook(event):
|
|||||||
pass
|
pass
|
||||||
if fragment_index > 0 and fragment_count > 0:
|
if fragment_index > 0 and fragment_count > 0:
|
||||||
percent = round(100 * fragment_index / fragment_count)
|
percent = round(100 * fragment_index / fragment_count)
|
||||||
|
percent_str = f'{percent}%'
|
||||||
elif downloaded_bytes > 0 and total_bytes > 0:
|
elif downloaded_bytes > 0 and total_bytes > 0:
|
||||||
percent = round(100 * downloaded_bytes / total_bytes)
|
percent = round(100 * downloaded_bytes / total_bytes)
|
||||||
if percent and (status.next_progress() < percent) and (0 == percent % 5):
|
if percent and (status.next_progress() < percent) and (0 == percent % 5):
|
||||||
|
Loading…
Reference in New Issue
Block a user