projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2133565
)
[extractor/common] Update _get_login_info's comment
author
Sergey M․
<dstftw@gmail.com>
Thu, 15 Sep 2016 15:34:29 +0000
(22:34 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 15 Sep 2016 15:34:29 +0000
(22:34 +0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 9627816b41b76a5531382a89efa0bbc034c4a802..95ea3fca5da50861d9633a2e5dd0c0702f429796 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-683,7
+683,10
@@
class InfoExtractor(object):
def _get_login_info(self, username_option='username', password_option='password', netrc_machine=None):
"""
Get the login info as (username, password)
def _get_login_info(self, username_option='username', password_option='password', netrc_machine=None):
"""
Get the login info as (username, password)
- It will look in the netrc file using the _NETRC_MACHINE value
+ First look for the manually specified credentials using username_option
+ and password_option as keys in params dictionary. If no such credentials
+ available look in the netrc file using the netrc_machine or _NETRC_MACHINE
+ value.
If there's no info available, return (None, None)
"""
if self._downloader is None:
If there's no info available, return (None, None)
"""
if self._downloader is None: