mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-28 16:24:09 +00:00
[downloader/external] curl: Add the '--location' flag
curl doesn't follow redirections by default
This commit is contained in:
parent
85729c51af
commit
163d966707
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ def _call_downloader(self, tmpfilename, info_dict):
|
||||||
|
|
||||||
class CurlFD(ExternalFD):
|
class CurlFD(ExternalFD):
|
||||||
def _make_cmd(self, tmpfilename, info_dict):
|
def _make_cmd(self, tmpfilename, info_dict):
|
||||||
cmd = [self.exe, '-o', tmpfilename]
|
cmd = [self.exe, '--location', '-o', tmpfilename]
|
||||||
for key, val in info_dict['http_headers'].items():
|
for key, val in info_dict['http_headers'].items():
|
||||||
cmd += ['--header', '%s: %s' % (key, val)]
|
cmd += ['--header', '%s: %s' % (key, val)]
|
||||||
cmd += self._source_address('--interface')
|
cmd += self._source_address('--interface')
|
||||||
|
|
Loading…
Reference in a new issue