From a052d5a81dfe31d8a35fb0166c8d20c65df75dd3 Mon Sep 17 00:00:00 2001 From: Tristan Waddington Date: Wed, 11 Mar 2020 16:22:26 -0700 Subject: [PATCH] Feedback --- youtube_dl/extractor/pornhub.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index 0153044d8..4dd6ad883 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -62,7 +62,6 @@ class PornHubBaseIE(InfoExtractor): ' You may want to use --cookies or --netrc.', expected=True) - # Authenticate, if required cookies = self._get_cookies('https://%s' % host) if all(login_info) and not cookies: self._login(host, login_info) @@ -73,10 +72,10 @@ class PornHubBaseIE(InfoExtractor): if 'premium' in host: login_form_url = 'https://%s/premium/login' % host - login_post_url = 'https://www.%s/front/authenticate' % host else: 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 login_page = self._download_webpage(