mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 05:26:37 +00:00
Reset hook.download_progress
before downloading
This commit is contained in:
parent
6d71c69878
commit
36a9902d26
@ -274,6 +274,9 @@ def download_media(
|
|||||||
|
|
||||||
progress_hook_func = progress_hook.get('function', None)
|
progress_hook_func = progress_hook.get('function', None)
|
||||||
if progress_hook_func:
|
if progress_hook_func:
|
||||||
|
hook = progress_hook.get('status', None)
|
||||||
|
if hook:
|
||||||
|
hook.download_progress = 0
|
||||||
ytopts['progress_hooks'].append(progress_hook_func)
|
ytopts['progress_hooks'].append(progress_hook_func)
|
||||||
|
|
||||||
codec_options = list()
|
codec_options = list()
|
||||||
|
Loading…
Reference in New Issue
Block a user