imputnet / cobalt

best way to save what you love
https://cobalt.tools
GNU Affero General Public License v3.0
16.71k stars 1.34k forks source link

youtube doesn't work on main instance #623

Closed nikunjmishra1998 closed 4 months ago

nikunjmishra1998 commented 4 months ago

bug description

Cobalt tools not working for any of the youtube video download

reproduction steps

steps to reproduce the described behavior.
here's an example of what it could look like:

  1. go to 'cobalt.tools'
  2. Paste any of Youtube video link
  3. Try to download
  4. see error

screenshots

image

ihatespawn commented 4 months ago

api works, only youtube doesn't work

wukko commented 4 months ago

i can't replicate the issue, can you try again?

wukko commented 4 months ago

for future reference: there’s a dedicated template for issues related to the main instance.

if the problem is fixed on your side, close this issue as completed.

nikunjmishra1998 commented 4 months ago

for local developemt it's still throwing error as shown in attached screen shot image

nikunjmishra1998 commented 4 months ago

curl --location 'http://localhost:9000/api/json' \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header 'sec-ch-ua: "Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"' \ --header 'sec-ch-ua-mobile: ?0' \ --header 'sec-ch-ua-platform: "Windows"' \ --header 'sec-fetch-dest: empty' \ --header 'sec-fetch-mode: cors' \ --header 'sec-fetch-site: cross-site' \ --data '{ "url": "https://youtu.be/fdhEPblKfdY", "aFormat": "mp3", "isAudioOnly": true, "isNoTTWatermark": true, "vQuality": "720" }'

Above Curl I am using

wukko commented 4 months ago

does main instance work or not?

local instance may need a google account token to work

nikunjmishra1998 commented 4 months ago

Yes, Main instance worked.

but till before an 2 hour ago local instance also was worked without any google account token

wukko commented 4 months ago

then youtube might have changed something regarding your ip range (i suppose?)

nikunjmishra1998 commented 4 months ago

it should not because I tried to develop today after so long. And I also not made that much amount of request to youtube

2shiraz commented 4 months ago

it should not because I tried to develop today after so long. And I also not made that much amount of request to youtube

The same happened to me too. I guess YouTube updated something recently as now without a cookie nothing work. So just use cookies ig

nikunjmishra1998 commented 4 months ago

No, It's Youtubei.js Package update issue. They have updated their package yesterday. So Use the 10.1.0 latest version and it's working without cookie

wukko commented 4 months ago

we also updated cobalt to be compatible with the new version yesterday. if you’re running cobalt in a docker container with watchtower, it should’ve updated itself by now.