diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-10-21 04:38:14 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-10-21 04:38:14 +0700 |
commit | 859447a28d3a787435df75470d8e39d2b078fdb6 (patch) | |
tree | 375d4be5e3432bf2c89ff84cb9e38e2edf297bde | |
parent | f8ae2c7f307e4f1bd5f3057e5c15a2a154eeea05 (diff) |
[adobepass] PEP 8
-rw-r--r-- | youtube_dl/extractor/adobepass.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/youtube_dl/extractor/adobepass.py b/youtube_dl/extractor/adobepass.py index b6d215a55..12eeab271 100644 --- a/youtube_dl/extractor/adobepass.py +++ b/youtube_dl/extractor/adobepass.py @@ -1376,19 +1376,23 @@ class AdobePassIE(InfoExtractor): provider_redirect_page, urlh = provider_redirect_page_res # Check for Comcast auto login if 'automatically signing you in' in provider_redirect_page: - oauth_redirect_url = self._html_search_regex(r'window\.location\s*=\s*[\'"]([^\'"]+)', + oauth_redirect_url = self._html_search_regex( + r'window\.location\s*=\s*[\'"]([^\'"]+)', provider_redirect_page, 'oauth redirect') # Just need to process the request. No useful data comes back - self._download_webpage(oauth_redirect_url, video_id, 'Confirming auto login') + self._download_webpage( + oauth_redirect_url, video_id, 'Confirming auto login') else: if '<form name="signin"' in provider_redirect_page: # already have the form, just fill it provider_login_page_res = provider_redirect_page_res elif 'http-equiv="refresh"' in provider_redirect_page: # redirects to the login page - oauth_redirect_url = self._html_search_regex(r'content="0;\s*url=([^\'"]+)', + oauth_redirect_url = self._html_search_regex( + r'content="0;\s*url=([^\'"]+)', provider_redirect_page, 'meta refresh redirect') - provider_login_page_res = self._download_webpage_handle(oauth_redirect_url, + provider_login_page_res = self._download_webpage_handle( + oauth_redirect_url, video_id, 'Downloading Provider Login Page') else: provider_login_page_res = post_form( |