aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-07-11 01:17:48 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-07-11 02:24:36 +0530
commitf5ea47488a2c59b2520b4988b7eab4d8830e3077 (patch)
tree2dd8200f282ea57b1324d3d1baf5f35d9977d1f8 /yt_dlp/downloader/common.py
parent134c913cca8e526a0128c62741689c0d0d05df03 (diff)
downloadhypervideo-pre-f5ea47488a2c59b2520b4988b7eab4d8830e3077.tar.lz
hypervideo-pre-f5ea47488a2c59b2520b4988b7eab4d8830e3077.tar.xz
hypervideo-pre-f5ea47488a2c59b2520b4988b7eab4d8830e3077.zip
[cleanup] Minor fixes
Diffstat (limited to 'yt_dlp/downloader/common.py')
-rw-r--r--yt_dlp/downloader/common.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py
index 3a0a014ef..f502253bf 100644
--- a/yt_dlp/downloader/common.py
+++ b/yt_dlp/downloader/common.py
@@ -450,8 +450,7 @@ class FileDownloader:
raise NotImplementedError('This method must be implemented by subclasses')
def _hook_progress(self, status, info_dict):
- if not self._progress_hooks:
- return
+ # Ideally we want to make a copy of the dict, but that is too slow
status['info_dict'] = info_dict
# youtube-dl passes the same status object to all the hooks.
# Some third party scripts seems to be relying on this.