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

No track formats found or This video requires age verification #18

Closed
Walkyst opened this issue Dec 19, 2021 · 0 comments
Closed

No track formats found or This video requires age verification #18

Walkyst opened this issue Dec 19, 2021 · 0 comments

Comments

@Walkyst
Copy link
Owner

Walkyst commented Dec 19, 2021

You are getting this error because did not configure YoutubeHttpContextFilter

First you need YouTube account on what you can view age restricted videos in your browser, for example you can check it on this video https://www.youtube.com/watch?v=B3eAMGXFw1o

In browser DevTools find one of these requests to InnerTube API (You can filter requests)
image

Then open request, look at Request Headers and find cookie field in it and find these two keys

  • __Secure-3PAPISID=
  • __Secure-3PSID=

Set these keys in YoutubeHttpContextFilter, paste only what going after =
(For lavalink users only need paste keys to PAPISID and PSID fields in your config file)

YoutubeHttpContextFilter.setPAPISID("key1")
YoutubeHttpContextFilter.setPSID("key2")

In this screenshots is used Telerik Fiddler Classic program with it very easy find required cookies and keys
image
image

@Walkyst Walkyst pinned this issue Dec 19, 2021
robinfriedli added a commit to robinfriedli/aiode that referenced this issue Dec 28, 2021
 - add properties aiode.tokens.yt-3PSID and aiode.tokens.yt-3PAPISID to
   specify cookies used by the YoutubeHttpContextFilter to support age
   restricted videos
 - see Walkyst/lavaplayer-fork#18
Amavect added a commit to Amavect/MusicBot that referenced this issue May 9, 2022
Swapped out lavaplayer branches.
Hooked PAPISID and PSID keys to the config.

In order to use this, add the following variables to the config:
papisid =
psid =

and set their value by looking at your Youtube cookies.
In Firefox, open up the dev tools (inspect element),
go to the Network tab,
filter for youtubei
refresh the page,
select the first POST message,
select the Cookies tab,
and grab __Secure-3PAPISID and __Secure-3PSID

See the official guide for that:
Walkyst/lavaplayer-fork#18
Amavect added a commit to Amavect/MusicBot that referenced this issue May 9, 2022
Swapped out lavaplayer branches.
Hooked PAPISID and PSID keys to the config.

In order to use this, add the following variables to the config:
papisid =
psid =

and set their value by looking at your Youtube cookies.
In Firefox, open up the dev tools (inspect element),
go to the Network tab,
filter for youtubei
refresh the page,
select the first POST message,
select the Cookies tab,
and grab __Secure-3PAPISID and __Secure-3PSID

See the official guide for that:
Walkyst/lavaplayer-fork#18
@Walkyst Walkyst closed this as completed Jun 30, 2022
@Walkyst Walkyst unpinned this issue Jun 30, 2022
jdenbroeder pushed a commit to jdenbroeder/MusicBot that referenced this issue Apr 2, 2024
Swapped out lavaplayer branches.
Hooked PAPISID and PSID keys to the config.

In order to use this, add the following variables to the config:
papisid =
psid =

and set their value by looking at your Youtube cookies.
In Firefox, open up the dev tools (inspect element),
go to the Network tab,
filter for youtubei
refresh the page,
select the first POST message,
select the Cookies tab,
and grab __Secure-3PAPISID and __Secure-3PSID

See the official guide for that:
Walkyst/lavaplayer-fork#18
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