[downloader/http] Add ability to pass downloader options via info dict
parent
cf7259bc93
commit
00c97e3e7a
|
@ -45,6 +45,7 @@ class HttpFD(FileDownloader):
|
||||||
|
|
||||||
is_test = self.params.get('test', False)
|
is_test = self.params.get('test', False)
|
||||||
chunk_size = self._TEST_FILE_SIZE if is_test else (
|
chunk_size = self._TEST_FILE_SIZE if is_test else (
|
||||||
|
info_dict.get('downloader_options', {}).get('http_chunk_size') or
|
||||||
self.params.get('http_chunk_size') or 0)
|
self.params.get('http_chunk_size') or 0)
|
||||||
|
|
||||||
ctx.open_mode = 'wb'
|
ctx.open_mode = 'wb'
|
||||||
|
|
|
@ -174,6 +174,8 @@ class InfoExtractor(object):
|
||||||
width : height ratio as float.
|
width : height ratio as float.
|
||||||
* no_resume The server does not support resuming the
|
* no_resume The server does not support resuming the
|
||||||
(HTTP or RTMP) download. Boolean.
|
(HTTP or RTMP) download. Boolean.
|
||||||
|
* downloader_options A dictionary of downloader options as
|
||||||
|
described in FileDownloader
|
||||||
|
|
||||||
url: Final video URL.
|
url: Final video URL.
|
||||||
ext: Video filename extension.
|
ext: Video filename extension.
|
||||||
|
|
Loading…
Reference in New Issue