[downloader/external] Simplify

pull/4878/head
Sergey M․ 2015-02-02 21:40:52 +06:00
rodzic aae3fdcfae
commit 469a64cebf
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -47,8 +47,9 @@ class ExternalFD(FileDownloader):
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']]
source_address = self.ydl.params.get('source_address')
if source_address:
command_part = [command_option, source_address]
return command_part
def _call_downloader(self, tmpfilename, info_dict):