revert renaming username to email

This commit is contained in:
feederbox826 2024-05-13 18:40:54 -04:00
parent edf229f46f
commit e81cd88730
1 changed files with 3 additions and 3 deletions

View File

@ -77,8 +77,8 @@ class PornHubBaseIE(InfoExtractor):
# on both sites so that we have to identify them as the same video.
# For that purpose we have to keep both in the same extractor
# but under different netrc machines.
email, password = self._get_login_info(netrc_machine=site)
if email is None:
username, password = self._get_login_info(netrc_machine=site)
if username is None:
return
login_url = 'https://www.%s/%slogin' % (host, 'premium/' if 'premium' in host else '')
@ -97,7 +97,7 @@ class PornHubBaseIE(InfoExtractor):
login_form = self._hidden_inputs(login_page)
login_form.update({
'email': email,
'email': username,
'password': password,
})