1
0
Fork 0

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
commit 0a473f2f0f
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
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']))