]> jfr.im git - yt-dlp.git/commitdiff
[FixupM3u8] Do not run if merge is needed
authorpukkandan <redacted>
Wed, 6 Oct 2021 00:13:22 +0000 (05:43 +0530)
committerpukkandan <redacted>
Wed, 6 Oct 2021 00:15:19 +0000 (05:45 +0530)
We pass the relevant arguments to the merger, so separate fixup in redundant

yt_dlp/YoutubeDL.py

index 3abb43000c76f20ef8d739878966d0262d009e21..770f627342f5b599081ae21f9b3e669fde4b22b1 100644 (file)
@@ -2820,7 +2820,8 @@ def ffmpeg_fixup(cndn, msg, cls):
 
                     downloader = (get_suitable_downloader(info_dict, self.params).__name__
                                   if 'protocol' in info_dict else None)
-                    ffmpeg_fixup(downloader == 'HlsFD', 'malformed AAC bitstream detected', FFmpegFixupM3u8PP)
+                    ffmpeg_fixup(info_dict.get('requested_formats') is None and downloader == 'HlsFD',
+                                 'malformed AAC bitstream detected', FFmpegFixupM3u8PP)
                     ffmpeg_fixup(downloader == 'WebSocketFragmentFD', 'malformed timestamps detected', FFmpegFixupTimestampPP)
                     ffmpeg_fixup(downloader == 'WebSocketFragmentFD', 'malformed duration detected', FFmpegFixupDurationPP)