projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aae3fdc
)
[downloader/external] Simplify
author
Sergey M․
<dstftw@gmail.com>
Mon, 2 Feb 2015 15:40:52 +0000
(21:40 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 2 Feb 2015 15:40:52 +0000
(21:40 +0600)
youtube_dl/downloader/external.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/external.py
b/youtube_dl/downloader/external.py
index 3d6554fe460c592b88fa62964edc788c10a12f27..012057ecb5fcc70c7221e63a24500b6c85046ca3 100644
(file)
--- 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):