Closed Aayansh549 closed 3 years ago
ytdl core error
I am having the same error.
I think we are supposed to wait till an update from ytdl
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
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
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?
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.
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
ytdl-core has been updated
use
npm i ytdl-core@latest
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.