diff options
author | Simon Sawicki <contact@grub4k.xyz> | 2023-02-10 03:56:26 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-02-10 19:36:55 +0530 |
commit | 6839ae1f6dde4c0442619e351b3f0442312ab4f9 (patch) | |
tree | bb41a1aebf34e2b28f1301dbbe584c40e4ecf8fa /yt_dlp/downloader/fragment.py | |
parent | c0cd13fb1c71b842c3d272d0273c03542b467766 (diff) |
[utils] `traverse_obj`: Fix more bugs
and cleanup uses of `default=[]`
Continued from b1bde57bef878478e3503ab07190fd207914ade9
Diffstat (limited to 'yt_dlp/downloader/fragment.py')
-rw-r--r-- | yt_dlp/downloader/fragment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/downloader/fragment.py b/yt_dlp/downloader/fragment.py index 02f8559cc..039cb1492 100644 --- a/yt_dlp/downloader/fragment.py +++ b/yt_dlp/downloader/fragment.py @@ -383,7 +383,7 @@ class FragmentFD(FileDownloader): max_workers = self.params.get('concurrent_fragment_downloads', 1) if max_progress > 1: self._prepare_multiline_status(max_progress) - is_live = any(traverse_obj(args, (..., 2, 'is_live'), default=[])) + is_live = any(traverse_obj(args, (..., 2, 'is_live'))) def thread_func(idx, ctx, fragments, info_dict, tpe): ctx['max_progress'] = max_progress |