1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 14:45:14 +00:00

Improve HLS/DASH external downloader code (#162)

Authored by: shirt
This commit is contained in:
shirt-dev
2021-03-10 09:39:40 -05:00
committed by GitHub
parent 54759df586
commit d7009caa03
4 changed files with 34 additions and 32 deletions

View File

@@ -2437,9 +2437,7 @@ class YoutubeDL(object):
else:
assert fixup_policy in ('ignore', 'never')
if (info_dict.get('protocol') == 'm3u8_native'
or info_dict.get('protocol') == 'm3u8'
and self.params.get('hls_prefer_native')):
if get_suitable_downloader(info_dict, self.params).__name__ == 'HlsFD':
if fixup_policy == 'warn':
self.report_warning('%s: malformed AAC bitstream detected.' % (
info_dict['id']))