Skip to content

Commit

Permalink
[downloader/ism] Honor HTTP headers when downloading fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Feb 18, 2017
1 parent 553f6db commit de64e23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/downloader/ism.py
Expand Up @@ -238,7 +238,10 @@ def real_download(self, filename, info_dict):
count = 0
while count <= fragment_retries:
try:
success = ctx['dl'].download(target_filename, {'url': segment_url})
success = ctx['dl'].download(target_filename, {
'url': segment_url,
'http_headers': info_dict.get('http_headers'),
})
if not success:
return False
down, target_sanitized = sanitize_open(target_filename, 'rb')
Expand Down

0 comments on commit de64e23

Please sign in to comment.