diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-10 20:56:24 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-11 22:07:42 +0530 |
commit | 0a473f2f0fd2629f009edb8bf127c4eed1738bf6 (patch) | |
tree | 01f36da16a89783568286c7ebf8cd75934d2e41e /yt_dlp/YoutubeDL.py | |
parent | e4edeb6226e2ba1433e562f52fa37b00e3da1a17 (diff) | |
download | hypervideo-pre-0a473f2f0fd2629f009edb8bf127c4eed1738bf6.tar.lz hypervideo-pre-0a473f2f0fd2629f009edb8bf127c4eed1738bf6.tar.xz hypervideo-pre-0a473f2f0fd2629f009edb8bf127c4eed1738bf6.zip |
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
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 5e3c015ba..7e0a69528 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -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'])) |