aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/downloader/fragment.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dlc/downloader/fragment.py')
-rw-r--r--youtube_dlc/downloader/fragment.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dlc/downloader/fragment.py b/youtube_dlc/downloader/fragment.py
index f4104c713..5bc7f50f6 100644
--- a/youtube_dlc/downloader/fragment.py
+++ b/youtube_dlc/downloader/fragment.py
@@ -95,11 +95,12 @@ class FragmentFD(FileDownloader):
frag_index_stream.write(json.dumps({'downloader': downloader}))
frag_index_stream.close()
- def _download_fragment(self, ctx, frag_url, info_dict, headers=None):
+ def _download_fragment(self, ctx, frag_url, info_dict, headers=None, request_data=None):
fragment_filename = '%s-Frag%d' % (ctx['tmpfilename'], ctx['fragment_index'])
fragment_info_dict = {
'url': frag_url,
'http_headers': headers or info_dict.get('http_headers'),
+ 'request_data': request_data,
}
success = ctx['dl'].download(fragment_filename, fragment_info_dict)
if not success: