[extractor/adobepass] Handle Charter_Direct MSO as Spectrum (#6824)

Authored by: bashonly
This commit is contained in:
bashonly 2023-04-16 12:01:19 -05:00 committed by GitHub
parent 9874e82b5a
commit ea05708203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1573,7 +1573,7 @@ def extract_redirect_url(html, url=None, fatal=False):
}), headers={
'Content-Type': 'application/x-www-form-urlencoded'
})
elif mso_id == 'Spectrum':
elif mso_id in ('Spectrum', 'Charter_Direct'):
# Spectrum's login for is dynamically loaded via JS so we need to hardcode the flow
# as a one-off implementation.
provider_redirect_page, urlh = provider_redirect_page_res