Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Botguard filtering #85

Closed
bcomnes opened this issue Sep 3, 2024 · 2 comments
Closed

Botguard filtering #85

bcomnes opened this issue Sep 3, 2024 · 2 comments

Comments

@bcomnes
Copy link
Member

bcomnes commented Sep 3, 2024

Youtube is filtering requests that lack a BotGuard token. It basically requires remote code execution to 'prove' a challenge response. Sketchy and clever.
https://github.com/fly-apps/smokescreen

Currently token generation is implemented with a community solution, but this should be tightened up.

@bcomnes
Copy link
Member Author

bcomnes commented Sep 23, 2024

https://github.com/LuanRT/googlevideo/blob/main/examples/onesie-request/main.ts

It returns a player response.

All you have to do is recreate the VideoInfo object if you want it to behave like getInfo (new YT.VideoInfo([ rawPlayerResponse ], /** any other required params... */)

 const playerResponse = {
    success: true,
    status_code: 200,
    data: JSON.parse(new TextDecoder().decode(response.body))
  };

  if (!playerResponse)
    throw new Error('Player response not found');

  const info = new YT.VideoInfo([ playerResponse ], innertube.session.actions, '');

  console.log('Info:', info);

@bcomnes
Copy link
Member Author

bcomnes commented Oct 18, 2024

This issue is resolved without bogtuard.

@bcomnes bcomnes closed this as completed Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant