~ubuntu-branches/ubuntu/vivid/youtube-dl/vivid

« back to all changes in this revision

Viewing changes to youtube_dl/downloader/external.py

  • Committer: Package Import Robot
  • Author(s): Rogério Brito
  • Date: 2015-03-01 02:12:13 UTC
  • mfrom: (44.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20150301021213-8w657cue71kp77sz
Tags: 2015.02.28-1
Imported Upstream version 2015.02.28. Closes: #778765.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
class CurlFD(ExternalFD):
77
77
    def _make_cmd(self, tmpfilename, info_dict):
78
 
        cmd = [self.exe, '-o', tmpfilename]
 
78
        cmd = [self.exe, '--location', '-o', tmpfilename]
79
79
        for key, val in info_dict['http_headers'].items():
80
80
            cmd += ['--header', '%s: %s' % (key, val)]
81
81
        cmd += self._source_address('--interface')