Better output

This commit is contained in:
tcely 2025-02-07 06:11:09 -05:00 committed by GitHub
parent 6177ff4c59
commit 71d84e1d74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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']):