Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YoutubeExtractor #325

Open
princew7 opened this issue Jul 24, 2024 · 10 comments
Open

YoutubeExtractor #325

princew7 opened this issue Jul 24, 2024 · 10 comments

Comments

@princew7
Copy link

運行機器人後的提示
(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: Androz2091/discord-player#1922
(Use node --trace-warnings ... to show where the warning was created)
某些歌曲在抓取上確實存在問題

@LND237
Copy link
Contributor

LND237 commented Jul 25, 2024

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

@BoredKevin
Copy link
Contributor

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 (Use node --trace-warnings ... to show where the warning was created)

image

@princew7
Copy link
Author

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 (Use node --trace-warnings ... to show where the warning was created)

image

Thanks, same issue

@StefanoCastro
Copy link

not really helpfull, but same

@LND237
Copy link
Contributor

LND237 commented Jul 25, 2024

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

@BoredKevin
Copy link
Contributor

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
Copy link
Contributor

LND237 commented Jul 26, 2024

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
Copy link

can you modify the code for discord player youtubei?

@LND237
Copy link
Contributor

LND237 commented Aug 26, 2024

@malitha22 Kinda busy right now on other things

@LND237 LND237 mentioned this issue Aug 27, 2024
@LND237
Copy link
Contributor

LND237 commented Aug 27, 2024

In Androz2091/discord-player#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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants