Skip to content

Age restrictions in ytdl-core did not overcome by using "Cookie" header #1839

Answered by twlite
danyaridiger asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, there! I tryed to load video from Youtube in my app using discord-player with ytdl-core config options which looks like: client.player = new Player(client, { ytdlOptions: { filter: "audioonly", quality: 'highestaudio', highWaterMark: 1 << 25, requestOptions: { headers: { cookie: cookie.toString(), }, }, }, });

When cookie.toString() is a buffer from text file with cookie (i checked it for correct parsing)

But i have got an error "ERR_NO_RESULT: Could not extract stream for this track. Error: Sign in to confirm your age".

How to correctly paste cookie in discord player configuration?

your cookie may have expired, can you try again with new cookie? Also what are you using as ytdl engi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@danyaridiger
Comment options

Answer selected by twlite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants