projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1da50aa
)
[extractor/common] Simplify _get_login_info
author
Sergey M․
<dstftw@gmail.com>
Thu, 15 Sep 2016 15:26:37 +0000
(22:26 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 15 Sep 2016 15:26:37 +0000
(22:26 +0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index e413799f9a3b4b78ca3cf3fd6908abaaa94c906e..9627816b41b76a5531382a89efa0bbc034c4a802 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-689,8
+689,6
@@
class InfoExtractor(object):
if self._downloader is None:
return (None, None)
- username = None
- password = None
downloader_params = self._downloader.params
# Attempt to use provided username and password or .netrc data
@@
-700,7
+698,7
@@
class InfoExtractor(object):
else:
username, password = self._get_netrc_login_info(netrc_machine)
- return
(username, password)
+ return
username, password
def _get_tfa_info(self, note='two-factor verification code'):
"""