1
0
Fork 0

[downloader] Pass info_dict to progress_hooks

This commit is contained in:
pukkandan 2021-07-21 22:58:43 +05:30
commit 3ba7740dd8
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
13 changed files with 36 additions and 28 deletions

View file

@ -66,7 +66,7 @@ class RtmpFD(FileDownloader):
'eta': eta,
'elapsed': time_now - start,
'speed': speed,
})
}, info_dict)
cursor_in_new_line = False
else:
# no percent for live streams
@ -82,7 +82,7 @@ class RtmpFD(FileDownloader):
'status': 'downloading',
'elapsed': time_now - start,
'speed': speed,
})
}, info_dict)
cursor_in_new_line = False
elif self.params.get('verbose', False):
if not cursor_in_new_line:
@ -208,7 +208,7 @@ class RtmpFD(FileDownloader):
'filename': filename,
'status': 'finished',
'elapsed': time.time() - started,
})
}, info_dict)
return True
else:
self.to_stderr('\n')