[extractor/adobepass] Add MSO AlticeOne (Optimum TV) (#4875)

* Suddenlink rebrand to Optimum. Fixes #4874

Authored by: CplPwnies
This commit is contained in:
CplPwnies 2022-09-08 23:52:05 -05:00 committed by GitHub
parent 3ffb2f5bea
commit 0c0b78b273
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1344,6 +1344,11 @@
'username_field': 'username', 'username_field': 'username',
'password_field': 'password', 'password_field': 'password',
}, },
'AlticeOne': {
'name': 'Optimum TV',
'username_field': 'j_username',
'password_field': 'j_password',
},
} }
@ -1705,7 +1710,7 @@ def extract_redirect_url(html, url=None, fatal=False):
mso_info.get('username_field', 'username'): username, mso_info.get('username_field', 'username'): username,
mso_info.get('password_field', 'password'): password mso_info.get('password_field', 'password'): password
} }
if mso_id == 'Cablevision': if mso_id in ('Cablevision', 'AlticeOne'):
form_data['_eventId_proceed'] = '' form_data['_eventId_proceed'] = ''
mvpd_confirm_page_res = post_form(provider_login_page_res, 'Logging in', form_data) mvpd_confirm_page_res = post_form(provider_login_page_res, 'Logging in', form_data)
if mso_id != 'Rogers': if mso_id != 'Rogers':