couldn't get this youtube video because it requires an account to view. #342

Closed
opened 2025-11-09 09:46:47 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @michelleDeko on GitHub (Jul 7, 2024).

Hi,

since some days I can't download YouTube Videos anymore because of following error:

couldn't get this youtube video because it requires an account to view.

this limitation is done by google to seemingly stop scraping, affecting all 3rd party tools and even their own clients.

try again, but if issue persists, check the or .

How can I fix this?

Originally created by @michelleDeko on GitHub (Jul 7, 2024). Hi, since some days I can't download YouTube Videos anymore because of following error: ``` couldn't get this youtube video because it requires an account to view. this limitation is done by google to seemingly stop scraping, affecting all 3rd party tools and even their own clients. try again, but if issue persists, check the or . ``` How can I fix this?
GiteaMirror added the instance hosting help label 2025-11-09 09:46:47 -06:00
Author
Owner

@michelleDeko commented on GitHub (Jul 7, 2024):

This error happens with every YouTube Video I tried (for example: https://youtu.be/DrE9umGiPZQ?si=gt-Wp2qXKYodYgRp)
Used it on my server dl.miichelle.moe (that's also listed on the instances list lol), country is Germany

@michelleDeko commented on GitHub (Jul 7, 2024): This error happens with every YouTube Video I tried (for example: https://youtu.be/DrE9umGiPZQ?si=gt-Wp2qXKYodYgRp) Used it on my server dl.miichelle.moe (that's also listed on the instances list lol), country is Germany
Author
Owner

@ihatespawn commented on GitHub (Jul 8, 2024):

just realised the tag.
it was very late and i forgot to look at it, sorry

youtube just started blocking bots again, maybe you should try changing the ip of the server or just add cookies (this will probably get your google account banned)

@ihatespawn commented on GitHub (Jul 8, 2024): just realised the tag. it was very late and i forgot to look at it, sorry youtube just started blocking bots again, maybe you should try changing the ip of the server or just add cookies (this will probably get your google account banned)
Author
Owner

@michelleDeko commented on GitHub (Jul 8, 2024):

I think changing the ip of the server wouldn't really work for me lol
How can I add cookies for Youtube (using a throwaway google account)?

@michelleDeko commented on GitHub (Jul 8, 2024): I think changing the ip of the server wouldn't really work for me lol How can I add cookies for Youtube (using a throwaway google account)?
Author
Owner

@ihatespawn commented on GitHub (Jul 8, 2024):

node src/util/generate-youtube-tokens with cobalt's source code open

@ihatespawn commented on GitHub (Jul 8, 2024): `node src/util/generate-youtube-tokens` with cobalt's source code open
Author
Owner

@michelleDeko commented on GitHub (Jul 8, 2024):

I did this now and added the cookies generate into cookies.json (copied over from the example files) and named it "youtube" inside the cookies.json. But it still doesn't work

@michelleDeko commented on GitHub (Jul 8, 2024): I did this now and added the cookies generate into cookies.json (copied over from the example files) and named it "youtube" inside the cookies.json. But it still doesn't work
Author
Owner

@ihatespawn commented on GitHub (Jul 8, 2024):

add this cookie to the youtube_oauth array in your cookies file

"youtube_oauth" not "youtube"

@ihatespawn commented on GitHub (Jul 8, 2024): > add this cookie to the youtube_oauth array in your cookies file "youtube_oauth" not "youtube"
Author
Owner

@michelleDeko commented on GitHub (Jul 8, 2024):

Ok, changed it, but still doesn't work :/

@michelleDeko commented on GitHub (Jul 8, 2024): Ok, changed it, but still doesn't work :/
Author
Owner

@wukko commented on GitHub (Jul 15, 2024):

there's nothing we can do to help from our side. try updating the docker package and using a different google account, NOT YOUR PERSONAL ONE, IT MIGHT GET BANNED

@wukko commented on GitHub (Jul 15, 2024): there's nothing we can do to help from our side. try updating the docker package and using a different google account, ***NOT YOUR PERSONAL ONE, IT MIGHT GET BANNED***
Sign in to join this conversation.