feat: add client_type to VideoPlayer, simplify MapResponse trait

The MapResponse trait needed too many arguments, so I added the MapRespCtx object.
Also added the client_type to the context, so it can be added to the extracted player data.
This is necessary to be able to download videos with the correct user agent
This commit is contained in:
ThetaDev 2024-07-27 02:30:24 +02:00
parent dd0565ba98
commit 90540c6aaa
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
24 changed files with 273 additions and 368 deletions

View file

@ -1125,5 +1125,6 @@
"expires_in_seconds": 21540,
"hls_manifest_url": null,
"dash_manifest_url": null,
"preview_frames": []
"preview_frames": [],
"client_type": "desktop"
}

View file

@ -2120,5 +2120,6 @@
"hls_manifest_url": null,
"dash_manifest_url": null,
"preview_frames": [],
"visitor_data": "CgtGWDFCUllrcTdxayjo1_OiBg%3D%3D"
"visitor_data": "CgtGWDFCUllrcTdxayjo1_OiBg%3D%3D",
"client_type": "desktop"
}