]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/downloader/common.py
[cleanup] Minor fixes
[yt-dlp.git] / yt_dlp / downloader / common.py
index 3a0a014ef772a2d3f098d5f883c1d9711300e2d3..f502253bf18a6341412c8a75cba5f6be3cdc72a8 100644 (file)
@@ -450,8 +450,7 @@ def real_download(self, filename, info_dict):
         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.