1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-01-08 14:17:54 +01:00
This commit is contained in:
Tristan Waddington 2020-03-11 16:22:26 -07:00
parent 93e281288f
commit a052d5a81d
No known key found for this signature in database
GPG Key ID: 19AEB0C1E96BC8EB

View File

@ -62,7 +62,6 @@ class PornHubBaseIE(InfoExtractor):
' You may want to use --cookies or --netrc.', ' You may want to use --cookies or --netrc.',
expected=True) expected=True)
# Authenticate, if required
cookies = self._get_cookies('https://%s' % host) cookies = self._get_cookies('https://%s' % host)
if all(login_info) and not cookies: if all(login_info) and not cookies:
self._login(host, login_info) self._login(host, login_info)
@ -73,10 +72,10 @@ class PornHubBaseIE(InfoExtractor):
if 'premium' in host: if 'premium' in host:
login_form_url = 'https://%s/premium/login' % host login_form_url = 'https://%s/premium/login' % host
login_post_url = 'https://www.%s/front/authenticate' % host
else: else:
login_form_url = 'https://%s/login' % host login_form_url = 'https://%s/login' % host
login_post_url = 'https://www.%s/front/authenticate' % host
login_post_url = 'https://www.%s/front/authenticate' % host
# Fetch login page # Fetch login page
login_page = self._download_webpage( login_page = self._download_webpage(