From 557f768ceaf4cbcd418d9c7681fb6396544f0af9 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 3 Mar 2025 15:56:24 +0100 Subject: [PATCH] Improve downloading messaging. --- src/ytplom/misc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ytplom/misc.py b/src/ytplom/misc.py index 26d1369..b16ccea 100644 --- a/src/ytplom/misc.py +++ b/src/ytplom/misc.py @@ -894,6 +894,7 @@ class DownloadsManager: video_id = self._to_download.pop(0) url = f'{YOUTUBE_URL_PREFIX}{video_id}' with YoutubeDL(YT_DL_PARAMS | {'progress_hooks': [hook]}) as ydl: + self._update_status(video_id, f'preparing download') info = ydl.sanitize_info(ydl.extract_info(url, download=False)) for requested in info['requested_formats']: estimated_total += requested['filesize_approx'] -- 2.30.2