1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-04 12:15:02 -04:00

More improvements to HLS/DASH external downloader code

* Fix error when there is no `protocol` in `info_dict`
* Move HLS byte range detection to `Aria2cFD` so that the download will fall back to the native downloader instead of ffmpeg
* Fix bug with getting no fragments in DASH
* Convert `check_results` in `can_download` to a generator
This commit is contained in:
pukkandan
2021-03-10 20:56:24 +05:30
parent e4edeb6226
commit 0a473f2f0f
5 changed files with 44 additions and 22 deletions

View File

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