mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-25 06:25:51 +01:00
[downloader/external] Simplify
This commit is contained in:
parent
aae3fdcfae
commit
469a64cebf
@ -47,8 +47,9 @@ class ExternalFD(FileDownloader):
|
|||||||
|
|
||||||
def _source_address(self, command_option):
|
def _source_address(self, command_option):
|
||||||
command_part = []
|
command_part = []
|
||||||
if self.ydl.params['source_address'] is not None:
|
source_address = self.ydl.params.get('source_address')
|
||||||
command_part = [command_option, self.ydl.params['source_address']]
|
if source_address:
|
||||||
|
command_part = [command_option, source_address]
|
||||||
return command_part
|
return command_part
|
||||||
|
|
||||||
def _call_downloader(self, tmpfilename, info_dict):
|
def _call_downloader(self, tmpfilename, info_dict):
|
||||||
|
Loading…
Reference in New Issue
Block a user