X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fdownloader%2Fexternal.py;h=ff031d2e04253b775e517347866fe3ee75a666c6;hb=73fac4e9119bc53d49e646c38529f1b6d8de734d;hp=3d6554fe460c592b88fa62964edc788c10a12f27;hpb=aae3fdcfae5deca9343fcfd6b3b76aac8420ac23;p=youtube-dl diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index 3d6554fe4..ff031d2e0 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -46,10 +46,10 @@ class ExternalFD(FileDownloader): return info_dict['protocol'] in ('http', 'https', 'ftp', 'ftps') def _source_address(self, command_option): - command_part = [] - if self.ydl.params['source_address'] is not None: - command_part = [command_option, self.ydl.params['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 """