From 71d84e1d74975ebba43dcc43b739978ffa5f7e9e Mon Sep 17 00:00:00 2001 From: tcely Date: Fri, 7 Feb 2025 06:11:09 -0500 Subject: [PATCH] Better output --- tubesync/sync/hooks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tubesync/sync/hooks.py b/tubesync/sync/hooks.py index a5c7f9ad..26ab2c64 100644 --- a/tubesync/sync/hooks.py +++ b/tubesync/sync/hooks.py @@ -58,6 +58,9 @@ class ProgressHookStatus(BaseStatus): self.status = status self.download_progress = 0 + def __str__(self): + return f'{self.__name__}: {self.status} ({self.download_progress}) file: {self.filename}' + def next_progress(self): if 0 == self.download_progress: return 0 @@ -134,7 +137,6 @@ def yt_dlp_progress_hook(event): f'{total_size_str} in {elapsed_str}') status.cleanup() - log.info(ProgressHookStatus.status_dict) def yt_dlp_postprocessor_hook(event): if not PPHookStatus.valid_status(event['status']):