1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[extractor/common] Update _get_login_info's comment

This commit is contained in:
Sergey M․ 2016-09-15 22:34:29 +07:00
parent 2133565cec
commit 32443dd346
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -683,7 +683,10 @@ def _get_netrc_login_info(self, netrc_machine=None):
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: