mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-14 01:05:06 +00:00
[ie/tv5monde] Fix impersonation (Bugfix for 9b95a6765a
) (#10430)
Authored by: bashonly
This commit is contained in:
parent
705f5b84de
commit
cc1a3098c0
1 changed files with 3 additions and 2 deletions
|
@ -122,8 +122,9 @@ def process_video_files(v):
|
||||||
if not token:
|
if not token:
|
||||||
continue
|
continue
|
||||||
deferred_json = self._download_json(
|
deferred_json = self._download_json(
|
||||||
f'https://api.tv5monde.com/player/asset/{d_param}/resolve?condenseKS=true', display_id,
|
f'https://api.tv5monde.com/player/asset/{d_param}/resolve?condenseKS=true',
|
||||||
note='Downloading deferred info', headers={'Authorization': f'Bearer {token}'}, fatal=False)
|
display_id, 'Downloading deferred info', fatal=False, impersonate=True,
|
||||||
|
headers={'Authorization': f'Bearer {token}'})
|
||||||
v_url = traverse_obj(deferred_json, (0, 'url', {url_or_none}))
|
v_url = traverse_obj(deferred_json, (0, 'url', {url_or_none}))
|
||||||
if not v_url:
|
if not v_url:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue