home · contact · privacy
Improve downloading messaging. master
authorChristian Heller <c.heller@plomlompom.de>
Mon, 3 Mar 2025 14:56:24 +0000 (15:56 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 3 Mar 2025 14:56:24 +0000 (15:56 +0100)
src/ytplom/misc.py

index 26d1369a73ba5acc4ad1b734f44bb08c58f9de42..b16cceadf20b0b30ea39ef7f180669194c013b6f 100644 (file)
@@ -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']