1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-17 14:45:42 +07:00

[downloader] Pass info_dict to progress_hooks

This commit is contained in:
pukkandan
2021-07-21 22:58:43 +05:30
parent 29b208f6f9
commit 3ba7740dd8
13 changed files with 36 additions and 28 deletions

View File

@@ -66,7 +66,7 @@ def run_rtmpdump(args):
'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 @@ def run_rtmpdump(args):
'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 @@ def run_rtmpdump(args):
'filename': filename,
'status': 'finished',
'elapsed': time.time() - started,
})
}, info_dict)
return True
else:
self.to_stderr('\n')