From: Christian Heller Date: Mon, 3 Mar 2025 14:56:24 +0000 (+0100) Subject: Improve downloading messaging. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdb.prefix%7D%7D/pick_tasks?a=commitdiff_plain;ds=inline;p=ytplom Improve downloading messaging. --- 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']