mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-23 11:14:53 +00:00
Compare commits
No commits in common. "5ca8669754905436eb870ea75a32514b9c26d4e7" and "03ff964a51eddc56356ad73c154d68f09f9782f2" have entirely different histories.
5ca8669754
...
03ff964a51
@ -1574,24 +1574,29 @@ 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
|
||||||
self._request_webpage(
|
philo_ident_payload = {
|
||||||
'https://idp.philo.com/auth/init/login_code', video_id,
|
|
||||||
'Requesting Philo auth code', data=json.dumps({
|
|
||||||
'ident': username,
|
'ident': username,
|
||||||
'device': 'web',
|
'device': 'web',
|
||||||
'send_confirm_link': False,
|
'send_confirm_link': False,
|
||||||
'send_token': True,
|
'send_token': True,
|
||||||
'device_ident': f'web-{uuid.uuid4().hex}',
|
'device_ident': f'web-{uuid.uuid4().hex}',
|
||||||
'include_login_link': True,
|
'include_login_link': True,
|
||||||
}).encode(), headers={
|
}
|
||||||
|
|
||||||
|
self._download_json_handle(
|
||||||
|
'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={
|
||||||
'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,
|
||||||
'Submitting token', data=json.dumps({'token': philo_code}).encode(),
|
note='Submitting token', data=json.dumps(update_code_payload).encode('utf-8'),
|
||||||
headers={
|
headers={
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user