From 8067cae57fb0b79a77c7f4e29f48c29177efec47 Mon Sep 17 00:00:00 2001 From: Sipherdrakon <64430430+Sipherdrakon@users.noreply.github.com> Date: Fri, 30 May 2025 04:32:04 -0400 Subject: [PATCH] Update yt_dlp/extractor/adobepass.py Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> --- yt_dlp/extractor/adobepass.py | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/yt_dlp/extractor/adobepass.py b/yt_dlp/extractor/adobepass.py index 6b4c2621ee..b5587ca6b9 100644 --- a/yt_dlp/extractor/adobepass.py +++ b/yt_dlp/extractor/adobepass.py @@ -1574,19 +1574,16 @@ class AdobePassIE(InfoExtractor): # XXX: Conventionally, base classes should en post_form(mvpd_confirm_page_res, 'Confirming Login') elif mso_id == 'Philo': # Philo has very unique authentication method - philo_ident_payload = { - '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( + self._request_webpage( 'https://idp.philo.com/auth/init/login_code', video_id, - note='Requesting Philo auth code', data=json.dumps(philo_ident_payload).encode('utf-8'), - headers={ + 'Requesting Philo auth code', data=json.dumps({ + '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', 'Accept': 'application/json', })