mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-06 13:35:50 +01:00
[cleanup] Minor fixes
This commit is contained in:
parent
134c913cca
commit
f5ea47488a
4 changed files with 8 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue