[youtube] Enforce using chunked HTTP downloading for DASH formats

This commit is contained in:
Sergey M․ 2018-02-04 07:17:26 +07:00
parent 00c97e3e7a
commit e4a60912b8
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with 5 additions and 0 deletions

View File

@ -1944,6 +1944,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
break break
if codecs: if codecs:
dct.update(parse_codecs(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) formats.append(dct)
elif video_info.get('hlsvp'): elif video_info.get('hlsvp'):
manifest_url = video_info['hlsvp'][0] manifest_url = video_info['hlsvp'][0]