mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[extractor/common] Simplify _get_login_info
This commit is contained in:
parent
1da50aa34e
commit
2133565cec
1 changed files with 1 additions and 3 deletions
|
@ -689,8 +689,6 @@ def _get_login_info(self, username_option='username', password_option='password'
|
||||||
if self._downloader is None:
|
if self._downloader is None:
|
||||||
return (None, None)
|
return (None, None)
|
||||||
|
|
||||||
username = None
|
|
||||||
password = None
|
|
||||||
downloader_params = self._downloader.params
|
downloader_params = self._downloader.params
|
||||||
|
|
||||||
# Attempt to use provided username and password or .netrc data
|
# Attempt to use provided username and password or .netrc data
|
||||||
|
@ -700,7 +698,7 @@ def _get_login_info(self, username_option='username', password_option='password'
|
||||||
else:
|
else:
|
||||||
username, password = self._get_netrc_login_info(netrc_machine)
|
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'):
|
def _get_tfa_info(self, note='two-factor verification code'):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue