This commit is contained in:
pukkandan 2021-10-13 04:42:31 +05:30
parent fc5c8b6492
commit 993191c0d5
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -2856,8 +2856,8 @@ def ffmpeg_fixup(cndn, msg, cls):
'writing DASH m4a. Only some players support this container', 'writing DASH m4a. Only some players support this container',
FFmpegFixupM4aPP) FFmpegFixupM4aPP)
downloader = (get_suitable_downloader(info_dict, self.params).__name__ downloader = get_suitable_downloader(info_dict, self.params) if 'protocol' in info_dict else None
if 'protocol' in info_dict else None) downloader = downloader.__name__ if downloader else None
ffmpeg_fixup(info_dict.get('requested_formats') is None and downloader == 'HlsFD', ffmpeg_fixup(info_dict.get('requested_formats') is None and downloader == 'HlsFD',
'malformed AAC bitstream detected', FFmpegFixupM3u8PP) 'malformed AAC bitstream detected', FFmpegFixupM3u8PP)
ffmpeg_fixup(downloader == 'WebSocketFragmentFD', 'malformed timestamps detected', FFmpegFixupTimestampPP) ffmpeg_fixup(downloader == 'WebSocketFragmentFD', 'malformed timestamps detected', FFmpegFixupTimestampPP)