ZerioDev / Music-bot

A complete code to download for a cool Discord music bot !
https://discord.gg/5cGSYV8ZZj
GNU General Public License v3.0
876 stars 1.07k forks source link

YoutubeExtractor #325

Open princew7 opened 1 month ago

princew7 commented 1 month ago

運行機器人後的提示 (node:25356) Warning: YoutubeExtractor uses scraping-based streaming libraries which is known to be unstable at times. An alternative is to use discord-player-youtubei https://npm.im/discord-player-youtubei View this GitHub issue for more information: https://github.com/Androz2091/discord-player/issues/1922 (Use node --trace-warnings ... to show where the warning was created) 某些歌曲在抓取上確實存在問題

LND237 commented 1 month ago

Can you please provide where the warning was created? It would be helpful.

BoredKevin commented 1 month ago

Hi, I had received this error as well, I have provided the error below and a screenshot

(node:2112406) Warning: YoutubeExtractor uses scraping-based streaming libraries which is known to be unstable at times. An alternative is to use discord-player-youtubei https://npm.im/discord-player-youtubei View this GitHub issue for more information: https://github.com/Androz2091/discord-player/issues/1922 (Usenode --trace-warnings ...to show where the warning was created)

image

princew7 commented 1 month ago

Hi, I had received this error as well, I have provided the error below and a screenshot

(node:2112406) Warning: YoutubeExtractor uses scraping-based streaming libraries which is known to be unstable at times. An alternative is to use discord-player-youtubei https://npm.im/discord-player-youtubei View this GitHub issue for more information: https://github.com/Androz2091/discord-player/issues/1922 (Usenode --trace-warnings ...to show where the warning was created)

image

Thanks, same issue

StefanoCastro commented 1 month ago

not really helpfull, but same

LND237 commented 1 month ago

@BoredKevin Can you please run the bot with the node --trace-warnings to locate where the warning is created?

BoredKevin commented 1 month ago

Here is what I got:

(node:3932631) Warning: YoutubeExtractor uses scraping-based streaming libraries which is known to be unstable at times.
An alternative is to use discord-player-youtubei https://npm.im/discord-player-youtubei
View this GitHub issue for more information: https://github.com/Androz2091/discord-player/issues/1922
    at _YoutubeExtractor.activate (/home/musicbot/lethal-boombox/node_modules/@discord-player/extractor/dist/index.js:563:13)
    at async _ExtractorExecutionContext.register (/home/musicbot/lethal-boombox/node_modules/discord-player/dist/index.js:1340:7)

image

LND237 commented 1 month ago

So this error comes from the YoutubeExtractor which the discord-player package uses, We will need to replace that with the Discord Player YouTubei package and modify the code to solve this.

malitha22 commented 3 weeks ago

can you modify the code for discord player youtubei?

LND237 commented 1 week ago

@malitha22 Kinda busy right now on other things

LND237 commented 1 week ago

In https://github.com/Androz2091/discord-player/issues/1922 there are some implementations for the conversions from a few days ago but I haven't tested it yet. Can someone else give it a try?