Compare commits

..

2 Commits

Author SHA1 Message Date
Sipherdrakon
5ca8669754
Update yt_dlp/extractor/adobepass.py
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
2025-05-30 04:32:12 -04:00
Sipherdrakon
8067cae57f
Update yt_dlp/extractor/adobepass.py
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
2025-05-30 04:32:04 -04:00

View File

@ -1574,29 +1574,24 @@ class AdobePassIE(InfoExtractor): # XXX: Conventionally, base classes should en
post_form(mvpd_confirm_page_res, 'Confirming Login') post_form(mvpd_confirm_page_res, 'Confirming Login')
elif mso_id == 'Philo': elif mso_id == 'Philo':
# Philo has very unique authentication method # Philo has very unique authentication method
philo_ident_payload = { self._request_webpage(
'ident': username,
'device': 'web',
'send_confirm_link': False,
'send_token': True,
'device_ident': f'web-{uuid.uuid4().hex}',
'include_login_link': True,
}
self._download_json_handle(
'https://idp.philo.com/auth/init/login_code', video_id, 'https://idp.philo.com/auth/init/login_code', video_id,
note='Requesting Philo auth code', data=json.dumps(philo_ident_payload).encode('utf-8'), 'Requesting Philo auth code', data=json.dumps({
headers={ 'ident': username,
'device': 'web',
'send_confirm_link': False,
'send_token': True,
'device_ident': f'web-{uuid.uuid4().hex}',
'include_login_link': True,
}).encode(), headers={
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Accept': 'application/json', 'Accept': 'application/json',
}) })
philo_code = getpass.getpass('Type auth code you have received [Return]: ') philo_code = getpass.getpass('Type auth code you have received [Return]: ')
self._request_webpage(
update_code_payload = {'token': philo_code}
self._download_json_handle(
'https://idp.philo.com/auth/update/login_code', video_id, 'https://idp.philo.com/auth/update/login_code', video_id,
note='Submitting token', data=json.dumps(update_code_payload).encode('utf-8'), 'Submitting token', data=json.dumps({'token': philo_code}).encode(),
headers={ headers={
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Accept': 'application/json', 'Accept': 'application/json',