fix: fetch unlocalized player data to interpret errors correctly; regression introduced with v0.6.0

This commit is contained in:
ThetaDev 2024-11-09 03:00:04 +01:00
parent 044094a4b7
commit 0919cbd0df
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
5 changed files with 22 additions and 12 deletions

View file

@ -24,7 +24,7 @@ use super::{
self,
player::{self, Format},
},
ClientType, MapRespCtx, MapRespCtxSource, MapResponse, MapResult, RustyPipeQuery,
ClientType, MapRespCtx, MapRespOptions, MapResponse, MapResult, RustyPipeQuery,
DEFAULT_PLAYER_CLIENT_ORDER,
};
@ -159,8 +159,9 @@ impl RustyPipeQuery {
video_id,
"player",
&request_body,
MapRespCtxSource {
MapRespOptions {
deobf: Some(&deobf),
unlocalized: true,
..Default::default()
},
)