[FixupM3u8] Do not run if merge is needed

We pass the relevant arguments to the merger, so separate fixup in redundant
This commit is contained in:
pukkandan 2021-10-06 05:43:22 +05:30
parent 1276a43a77
commit 8472674399
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -2820,7 +2820,8 @@ class YoutubeDL(object):
downloader = (get_suitable_downloader(info_dict, self.params).__name__ downloader = (get_suitable_downloader(info_dict, self.params).__name__
if 'protocol' in info_dict else None) 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 timestamps detected', FFmpegFixupTimestampPP)
ffmpeg_fixup(downloader == 'WebSocketFragmentFD', 'malformed duration detected', FFmpegFixupDurationPP) ffmpeg_fixup(downloader == 'WebSocketFragmentFD', 'malformed duration detected', FFmpegFixupDurationPP)