]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/downloader/external.py
[theplatform] Add URL sign capability
[youtube-dl.git] / youtube_dl / downloader / external.py
index e47e3bf4c7df58f4e8a74c8c42263799c2b3208e..ff031d2e04253b775e517347866fe3ee75a666c6 100644 (file)
@@ -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')
+        source_address = self.params.get('source_address')
         if source_address is None:
-            command_part = [command_option, source_address]
-        return command_part
+            return []
+        return [command_option, source_address]
 
     def _call_downloader(self, tmpfilename, info_dict):
         """ Either overwrite this or implement _make_cmd """