Lavalink icon indicating copy to clipboard operation
Lavalink copied to clipboard

Play-dl support

Open getxd-dev opened this issue 3 years ago • 6 comments

Use play-dl for extracting YT videos.

https://www.npmjs.com/package/play-dl

getxd-dev avatar Oct 06 '21 01:10 getxd-dev

I seriously doubt Lavalink will ever switch from Lavaplayer because the whole purpose is to provide a separate Lavaplayer node. Besides that, it wouldn’t work anyway seeing that’s an npm package and Lavalink is written in either java or kotlin (i forget)

Ryan5453 avatar Oct 06 '21 02:10 Ryan5453

I'm not opposed to having multiple downloader libraries. The big issue is that play-dl is a JS library which is difficult to integrate into a JVM application like Lavalink. It might be possible with something like GraalVM, but that would require users to switch to that specific JVM.

https://www.graalvm.org/reference-manual/js/JavaInteroperability/

The downloaded audio would then go through Lavaplayer to be processed.

Significant changes would have to be made to Lavalink to make all of this possible.

Lavalink is written in either java or kotlin (i forget)

Both! They are interoperable JVM languages.

freyacodes avatar Oct 06 '21 08:10 freyacodes

check this out https://github.com/AmandaDiscord/Volcano its 1:1 replacement for lavalink which runs on js and ytdl. It mirrors the lavalink api so no code needs to be rewritten

DaliborTrampota avatar Jan 16 '22 16:01 DaliborTrampota

would not recommend tbh

PapiOphidian avatar Mar 28 '23 19:03 PapiOphidian

play-dl is basically unstable through my experience. I cannot be so sure that changing downloader to Node.js based library will improve the quality of Lavalink.

Fyphen1223 avatar Aug 17 '23 04:08 Fyphen1223

madebylydia avatar Apr 13 '24 23:04 madebylydia