1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-29 19:47:54 +01:00

[extractor/common] Simplify _get_login_info

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

View File

@ -689,8 +689,6 @@ class InfoExtractor(object):
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 @@ class InfoExtractor(object):
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'):
""" """