X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=youtube_dl%2Fdownloader%2Fexternal.py;h=ff031d2e04253b775e517347866fe3ee75a666c6;hb=9e91449c8d1dae53eda6fb250384f0afa5122ce6;hp=012057ecb5fcc70c7221e63a24500b6c85046ca3;hpb=469a64cebf534b702e50ad9585e63ae3f8ed5d16;p=youtube-dl.git diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index 012057ecb..ff031d2e0 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -46,11 +46,10 @@ class ExternalFD(FileDownloader): return info_dict['protocol'] in ('http', 'https', 'ftp', 'ftps') def _source_address(self, command_option): - command_part = [] - source_address = self.ydl.params.get('source_address') - if source_address: - command_part = [command_option, source_address] - return command_part + source_address = self.params.get('source_address') + if source_address is None: + return [] + return [command_option, source_address] def _call_downloader(self, tmpfilename, info_dict): """ Either overwrite this or implement _make_cmd """