feat: add visitor data parameter
This commit is contained in:
parent
39b32da5a4
commit
9d0ae0e9c2
13 changed files with 113 additions and 71 deletions
|
|
@ -58,7 +58,7 @@ struct QContentPlaybackContext {
|
|||
}
|
||||
|
||||
impl RustyPipeQuery {
|
||||
pub async fn player(self, video_id: &str) -> Result<VideoPlayer, Error> {
|
||||
pub async fn player(&self, video_id: &str) -> Result<VideoPlayer, Error> {
|
||||
let q1 = self.clone();
|
||||
let android_res = q1.player_from_client(video_id, ClientType::Android).await;
|
||||
|
||||
|
|
@ -75,12 +75,12 @@ impl RustyPipeQuery {
|
|||
}
|
||||
|
||||
pub async fn player_from_client(
|
||||
self,
|
||||
&self,
|
||||
video_id: &str,
|
||||
client_type: ClientType,
|
||||
) -> Result<VideoPlayer, Error> {
|
||||
let (context, deobf) = tokio::join!(
|
||||
self.get_context(client_type, false),
|
||||
self.get_context(client_type, false, None),
|
||||
self.client.get_deobf()
|
||||
);
|
||||
let deobf = deobf?;
|
||||
|
|
|
|||
Reference in a new issue