mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-26 21:59:08 +01:00
parent
84842aee2b
commit
1f1df1251e
1 changed files with 16 additions and 10 deletions
|
@ -1650,21 +1650,27 @@ class AdobePassIE(InfoExtractor):
|
||||||
hidden_data = self._hidden_inputs(first_bookend_page)
|
hidden_data = self._hidden_inputs(first_bookend_page)
|
||||||
hidden_data['history_val'] = 1
|
hidden_data['history_val'] = 1
|
||||||
|
|
||||||
provider_login_redirect_page = self._download_webpage(
|
provider_login_redirect_page_res = self._download_webpage_handle(
|
||||||
urlh.geturl(), video_id, 'Sending First Bookend',
|
urlh.geturl(), video_id, 'Sending First Bookend',
|
||||||
query=hidden_data)
|
query=hidden_data)
|
||||||
|
|
||||||
provider_tryauth_url = self._html_search_regex(
|
provider_login_redirect_page, urlh = provider_login_redirect_page_res
|
||||||
r'url:\s*[\'"]([^\'"]+)', provider_login_redirect_page, 'ajaxurl')
|
|
||||||
|
|
||||||
provider_tryauth_page = self._download_webpage(
|
# Some website partners seem to not have the extra ajaxurl redirect step, so we check if we already
|
||||||
provider_tryauth_url, video_id, 'Submitting TryAuth',
|
# have the login prompt or not
|
||||||
query=hidden_data)
|
if 'id="password" type="password" name="password"' in provider_login_redirect_page:
|
||||||
|
provider_login_page_res = provider_login_redirect_page_res
|
||||||
|
else:
|
||||||
|
provider_tryauth_url = self._html_search_regex(
|
||||||
|
r'url:\s*[\'"]([^\'"]+)', provider_login_redirect_page, 'ajaxurl')
|
||||||
|
provider_tryauth_page = self._download_webpage(
|
||||||
|
provider_tryauth_url, video_id, 'Submitting TryAuth',
|
||||||
|
query=hidden_data)
|
||||||
|
|
||||||
provider_login_page_res = self._download_webpage_handle(
|
provider_login_page_res = self._download_webpage_handle(
|
||||||
f'https://authorize.suddenlink.net/saml/module.php/authSynacor/login.php?AuthState={provider_tryauth_page}',
|
f'https://authorize.suddenlink.net/saml/module.php/authSynacor/login.php?AuthState={provider_tryauth_page}',
|
||||||
video_id, 'Getting Login Page',
|
video_id, 'Getting Login Page',
|
||||||
query=hidden_data)
|
query=hidden_data)
|
||||||
|
|
||||||
provider_association_redirect, urlh = post_form(
|
provider_association_redirect, urlh = post_form(
|
||||||
provider_login_page_res, 'Logging in', {
|
provider_login_page_res, 'Logging in', {
|
||||||
|
|
Loading…
Reference in a new issue