aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorshirt-dev <2660574+shirt-dev@users.noreply.github.com>2021-03-10 09:39:40 -0500
committerGitHub <noreply@github.com>2021-03-10 20:09:40 +0530
commitd7009caa03b48360541e0770a9231ba71f429308 (patch)
tree032a1712ebe8571c4a0fbc6b8ab0c967e572906e /yt_dlp/YoutubeDL.py
parent54759df58626913a0ed0c96ee35615921668b8b2 (diff)
downloadhypervideo-pre-d7009caa03b48360541e0770a9231ba71f429308.tar.lz
hypervideo-pre-d7009caa03b48360541e0770a9231ba71f429308.tar.xz
hypervideo-pre-d7009caa03b48360541e0770a9231ba71f429308.zip
Improve HLS/DASH external downloader code (#162)
Authored by: shirt
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index e58f7a32f..5e3c015ba 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -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']))