fent / fent/node-ytdl-core

Status code 410 Age limited videos

Open
#1,166 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.7k
Forks
852
PR merge metrics
No merged PRs in 30d

Description

Hey !

I actually creating an Electron app to dowload video
I'm trying to dowmload this video : https://www.youtube.com/watch?v=br82-adJ0FU
And its age limited.
So I tried to use the cookie part like in this issue : https://github.com/fent/node-ytdl-core/issues/684

This is my code
`
requestOptions: {
headers: {
cookie: cookie,
"x-youtube-identity-token": ID_TOKEN,
},
},
`
`cookie` come from `document.cookie` on the youtube page
`ID_TOKEN` come from ID_TOKEN on the youtube page

( without ID_TOKEN I got `Error: Cookie header used in request, but unable to find YouTube identity token` )
I have no ideas what I'm doing wrong.

Thanks for your work.

I'm using `ytdl-core@4.11.2`
no vpn ( I'm from France )
( of course my account is 18+ )

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.