Browse Source

[downloader/external] curl: Add the '--location' flag

curl doesn't follow redirections by default
master
Jaime Marquínez Ferrándiz 9 years ago
parent
commit
163d966707
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/downloader/external.py

2
youtube_dl/downloader/external.py

@ -75,7 +75,7 @@ class ExternalFD(FileDownloader):
class CurlFD(ExternalFD):
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():
cmd += ['--header', '%s: %s' % (key, val)]
cmd += self._source_address('--interface')

Loading…
Cancel
Save