skick1234 / DisTube

A powerful Discord.js module for simplifying music commands and effortless playback of various sources with integrated audio filters.
https://distube.js.org
MIT License
423 stars 94 forks source link

Status Code: 404 #113

Closed Aayansh549 closed 3 years ago

Aayansh549 commented 3 years ago

It's showing me Status 404 in console. whenever I try to play a song. I'm using searchSongs as false in constructor. Butbits not playing song just showing same error. How can I solve that.

LackyPal commented 3 years ago

ytdl core error

xMooddyy commented 3 years ago

I am having the same error.

IronGolm commented 3 years ago

I think we are supposed to wait till an update from ytdl

meesam4687 commented 3 years ago

I found a fix: Go To : node_modules/ytdl-core/lib/info.js Replace line 254 with let jsonStr = body.split("ytInitialPlayerResponse = {")[1].split("}}};")[0] += "}}}";

ITS TEMPORARY, WAIT FOR THE UPDATE

PasinduDushan commented 3 years ago

I found a fix: Go To : node_modules/ytdl-core/lib/info.js Replace line 254 with let jsonStr = body.split("ytInitialPlayerResponse = {")[1].split("}}};")[0] += "}}}";

It's tempory. You can play like 2-3 songs and again it shows 404 error

iiAlanii commented 3 years ago

Should I be concerned? When I install Distube it tells me this

"@distube/ytdl@2.0.6: This package will not be updated anymore."

Anyone could answer?

skick1234 commented 3 years ago

Should I be concerned? When I install Distube it tells me this

"@distube/ytdl@2.0.6: This package will not be updated anymore."

Anyone could answer?

Because it is deprecated. V3 (alpha/beta) doesn't use it anymore. Anyway, it shouldn't create any bugs at the present.

skick1234 commented 3 years ago

This is due to YouTube changed their site recently and ytdl-core@4.8.2 cannot handle that. This will be fixed after ytdl-core author updates the package

Solution: Use this fork

npm i distubejs/node-ytdl-core

Note: You have to install git before installing an npm package from GitHub (Or basically before installing the above package) And use npm v7 for easier overriding packages

meesam4687 commented 3 years ago

ytdl-core has been updated use npm i ytdl-core@latest