projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00c97e3
)
[youtube] Enforce using chunked HTTP downloading for DASH formats
author
Sergey M․
<dstftw@gmail.com>
Sun, 4 Feb 2018 00:17:26 +0000
(07:17 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 4 Feb 2018 00:17:26 +0000
(07:17 +0700)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 43051512bc1013640bc99d98437b3cf2a7b258a3..17543d6f40a2056fe161e7084156a83b4115ebc9 100644
(file)
--- 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]