aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-02-02 21:40:52 +0600
committerSergey M․ <dstftw@gmail.com>2015-02-02 21:40:52 +0600
commit469a64cebf534b702e50ad9585e63ae3f8ed5d16 (patch)
tree57fdd3f38c38ab6c1ab97d3a8512a0fc4fcee297
parentaae3fdcfae5deca9343fcfd6b3b76aac8420ac23 (diff)
[downloader/external] Simplify
-rw-r--r--youtube_dl/downloader/external.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py
index 3d6554fe4..012057ecb 100644
--- a/youtube_dl/downloader/external.py
+++ b/youtube_dl/downloader/external.py
@@ -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):