My instance hosting cannot download YouTube videos #348

Closed
opened 2025-11-09 09:46:59 -06:00 by GiteaMirror · 7 comments
Owner

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。
截屏2024-07-10 20 12 49

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。 <img width="513" alt="截屏2024-07-10 20 12 49" src="https://github.com/imputnet/cobalt/assets/94845771/2b242a60-2975-42f3-954c-9e480c4fee5d">
GiteaMirror added the instance hosting help label 2025-11-09 09:46:59 -06:00
Author
Owner

@lostdusty commented on GitHub (Jul 10, 2024):

did you added youtube cookies?

@lostdusty commented on GitHub (Jul 10, 2024): did you added youtube cookies?
Author
Owner

@ghost commented on GitHub (Jul 10, 2024):

did you added youtube cookies?

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?

@ghost commented on GitHub (Jul 10, 2024): > did you added youtube cookies? 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?
Author
Owner

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

Should I use cookies for my personal youtube account?

absolutely not. it will get banned. make a new account for that.
image

If so, how can I add cookies?

go to cobalt's source code and execute npm run token:youtube. then, do what it says and you should be done.

@ihatespawn commented on GitHub (Jul 10, 2024): > Should I use cookies for my personal youtube account? absolutely not. it will get banned. make a new account for that. ![image](https://github.com/imputnet/cobalt/assets/168680471/d189785e-60c0-4810-97a9-7b7d711507dd) > If so, how can I add cookies? go to cobalt's source code and execute `npm run token:youtube`. then, do what it says and you should be done.
Author
Owner

@ghost commented on GitHub (Jul 10, 2024):

ok i will try

@ghost commented on GitHub (Jul 10, 2024): ok i will try
Author
Owner

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

ok i will try

do NOT use your personal google account

@wukko commented on GitHub (Jul 10, 2024): > ok i will try do NOT use your personal google account
Author
Owner

@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?

@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?
Author
Owner

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

will this youtube_oauth expire? Do I need to do it again at some point in the future?

image

@ihatespawn commented on GitHub (Jul 21, 2024): > will this youtube_oauth expire? Do I need to do it again at some point in the future? ![image](https://github.com/user-attachments/assets/2ceb5754-9e18-4cc9-834b-8ca2bd5b659f)
Sign in to join this conversation.