diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-03 23:44:07 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-03 23:52:45 +0530 |
commit | be72c62480031380809e9f940145a7d2cd26e3cd (patch) | |
tree | ad398766968cab7186a81257a4cde1f92ed18d26 /yt_dlp/YoutubeDL.py | |
parent | 61e9d9268cad62008f07e635d99cb6ab4120518c (diff) | |
download | hypervideo-pre-be72c62480031380809e9f940145a7d2cd26e3cd.tar.lz hypervideo-pre-be72c62480031380809e9f940145a7d2cd26e3cd.tar.xz hypervideo-pre-be72c62480031380809e9f940145a7d2cd26e3cd.zip |
Fix recursion error in f46e2f9d929f395b32b52cdab93dde980a5ddaf1
Closes #2216
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index d27bd209c..993d061cf 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2552,7 +2552,6 @@ class YoutubeDL(object): continue break - info_dict['requested_downloads'] = formats_to_download best_format = formats_to_download[-1] if formats_to_download else {} if not formats_to_download: if not self.params.get('ignore_no_formats_error'): @@ -2589,14 +2588,15 @@ class YoutubeDL(object): assert write_archive.issubset({True, False, 'ignore'}) if True in write_archive and False not in write_archive: self.record_download_archive(info_dict) + + info_dict['requested_downloads'] = formats_to_download for pp in self._pps['after_video']: info_dict = self.run_pp(pp, info_dict) if max_downloads_reached: raise MaxDownloadsReached() # We update the info dict with the selected best quality format (backwards compatibility) - if formats_to_download: - info_dict.update(best_format) + info_dict.update(best_format) return info_dict def process_subtitles(self, video_id, normal_subtitles, automatic_captions): |