mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 06:26:37 +00:00
Better output
This commit is contained in:
parent
6177ff4c59
commit
71d84e1d74
@ -58,6 +58,9 @@ class ProgressHookStatus(BaseStatus):
|
|||||||
self.status = status
|
self.status = status
|
||||||
self.download_progress = 0
|
self.download_progress = 0
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return f'{self.__name__}: {self.status} ({self.download_progress}) file: {self.filename}'
|
||||||
|
|
||||||
def next_progress(self):
|
def next_progress(self):
|
||||||
if 0 == self.download_progress:
|
if 0 == self.download_progress:
|
||||||
return 0
|
return 0
|
||||||
@ -134,7 +137,6 @@ def yt_dlp_progress_hook(event):
|
|||||||
f'{total_size_str} in {elapsed_str}')
|
f'{total_size_str} in {elapsed_str}')
|
||||||
|
|
||||||
status.cleanup()
|
status.cleanup()
|
||||||
log.info(ProgressHookStatus.status_dict)
|
|
||||||
|
|
||||||
def yt_dlp_postprocessor_hook(event):
|
def yt_dlp_postprocessor_hook(event):
|
||||||
if not PPHookStatus.valid_status(event['status']):
|
if not PPHookStatus.valid_status(event['status']):
|
||||||
|
Loading…
Reference in New Issue
Block a user