Skip to content

Commit

Permalink
[youtube] Enforce using chunked HTTP downloading for DASH formats
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Feb 4, 2018
1 parent 00c97e3 commit e4a6091
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1944,6 +1944,11 @@ def _extract_count(count_name):
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]
Expand Down

0 comments on commit e4a6091

Please sign in to comment.