home
·
contact
·
privacy
projects
/
ytplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f30f54e
)
Improve downloading messaging.
master
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 3 Mar 2025 14:56:24 +0000
(15:56 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 3 Mar 2025 14:56:24 +0000
(15:56 +0100)
src/ytplom/misc.py
patch
|
blob
|
history
diff --git
a/src/ytplom/misc.py
b/src/ytplom/misc.py
index 26d1369a73ba5acc4ad1b734f44bb08c58f9de42..b16cceadf20b0b30ea39ef7f180669194c013b6f 100644
(file)
--- 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']