1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-04 00:55:15 +00:00

[cleanup] misc

This commit is contained in:
pukkandan
2021-10-23 02:07:20 +05:30
parent 457f6d6866
commit 49a57e70a9
17 changed files with 104 additions and 69 deletions

View File

@ -370,7 +370,8 @@ class FragmentFD(FileDownloader):
if max_progress == 1:
return self.download_and_append_fragments(*args[0], pack_func=pack_func, finish_func=finish_func)
max_workers = self.params.get('concurrent_fragment_downloads', max_progress)
self._prepare_multiline_status(max_progress)
if max_progress > 1:
self._prepare_multiline_status(max_progress)
def thread_func(idx, ctx, fragments, info_dict, tpe):
ctx['max_progress'] = max_progress