mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-22 14:24:23 -05:00
My instance hosting cannot download YouTube videos #348
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jul 10, 2024).
I don't use cookies.json.

When I download YTB videos, the site returns http code 400 error. site display:
“something went wrong when i tried getting info about your link. are you sure it works? check if it does, and try again”
But when I download twitter videos, everything works fine。
@lostdusty commented on GitHub (Jul 10, 2024):
did you added youtube cookies?
@ghost commented on GitHub (Jul 10, 2024):
not yet.
If I want to download youtube videos do I have to add youtube cookies?
Should I use cookies for my personal youtube account?
If so, how can I add cookies?
@ihatespawn commented on GitHub (Jul 10, 2024):
absolutely not. it will get banned. make a new account for that.

go to cobalt's source code and execute
npm run token:youtube. then, do what it says and you should be done.@ghost commented on GitHub (Jul 10, 2024):
ok i will try
@wukko commented on GitHub (Jul 10, 2024):
do NOT use your personal google account
@ghost commented on GitHub (Jul 10, 2024):
Great.
I can now download YouTube videos.
I want to ask, will this youtube_oauth expire? Do I need to do it again at some point in the future?
@ihatespawn commented on GitHub (Jul 21, 2024):