aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youtube.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-02-04 07:17:26 +0700
committerSergey M․ <dstftw@gmail.com>2018-02-04 07:17:26 +0700
commite4a60912b8345536387ae14d0d0611eb0b82c23a (patch)
treee9920196ab88cde9a236de7d0bea49ba3b881b9d /youtube_dl/extractor/youtube.py
parent00c97e3e7ab592b795f36b547a938e65d40b3771 (diff)
[youtube] Enforce using chunked HTTP downloading for DASH formats
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r--youtube_dl/extractor/youtube.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 43051512b..17543d6f4 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -1944,6 +1944,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
break
if codecs:
dct.update(parse_codecs(codecs))
+ if dct.get('acodec') == 'none' or dct.get('vcodec') == 'none':
+ dct['downloader_options'] = {
+ # Youtube throttles chunks >~10M
+ 'http_chunk_size': 10485760,
+ }
formats.append(dct)
elif video_info.get('hlsvp'):
manifest_url = video_info['hlsvp'][0]