aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/http.py
diff options
context:
space:
mode:
authorThe Hatsune Daishi <nao20010128@gmail.com>2021-09-22 23:12:04 +0900
committerGitHub <noreply@github.com>2021-09-22 19:42:04 +0530
commitbd50a52b0d7247cdbf205eb851ce33ae4b89c516 (patch)
tree1b51741f1eb2e5c435478ed3e4dff650541c2b3b /yt_dlp/downloader/http.py
parentc12977bdc455883e7061c2275da093c5b419a32a (diff)
downloadhypervideo-pre-bd50a52b0d7247cdbf205eb851ce33ae4b89c516.tar.lz
hypervideo-pre-bd50a52b0d7247cdbf205eb851ce33ae4b89c516.tar.xz
hypervideo-pre-bd50a52b0d7247cdbf205eb851ce33ae4b89c516.zip
Basic framework for simultaneous download of multiple formats (#1036)
Authored by: nao20010128nao
Diffstat (limited to 'yt_dlp/downloader/http.py')
-rw-r--r--yt_dlp/downloader/http.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/downloader/http.py b/yt_dlp/downloader/http.py
index 1edb0f91f..9e79051ad 100644
--- a/yt_dlp/downloader/http.py
+++ b/yt_dlp/downloader/http.py
@@ -310,6 +310,7 @@ class HttpFD(FileDownloader):
'eta': eta,
'speed': speed,
'elapsed': now - ctx.start_time,
+ 'ctx_id': info_dict.get('ctx_id'),
}, info_dict)
if data_len is not None and byte_counter == data_len:
@@ -357,6 +358,7 @@ class HttpFD(FileDownloader):
'filename': ctx.filename,
'status': 'finished',
'elapsed': time.time() - ctx.start_time,
+ 'ctx_id': info_dict.get('ctx_id'),
}, info_dict)
return True