From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 3 Mar 2025 14:56:24 +0000 (+0100)
Subject: Improve downloading messaging.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%22https:/validator.w3.org/todos?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;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']