lavalink-devs / Lavalink

Standalone audio sending node based on Lavaplayer.
https://lavalink.dev/
MIT License
1.58k stars 668 forks source link

Youtube search but doesnt play #1055

Closed SuupraaaMK4 closed 3 months ago

SuupraaaMK4 commented 4 months ago

Im using Lavalink latest version with youtube-source 1.3.0 and poru 5.1.0. Yesterday works perfectly but now, it search the song but finish queue instantly. I test in another server (both mine, same config and verison) and works, so why this happen?

devoxin commented 4 months ago

Logs.

Fizayy commented 4 months ago

Same here, music start and stop instant even with spotify

ErrorDoc404 commented 4 months ago

it fetch the song join the vs but didn't play and skip the song

ayaweeb commented 4 months ago

maybe the songs are explicit, that might be why it skips them.

ErrorDoc404 commented 4 months ago

well black pink album is not and it working fine in Lavalink v3 but its skipping in v4

ayaweeb commented 4 months ago

well black pink album is not and it working fine in Lavalink v3 but its skipping in v4

try using the new youtube source plugin, disable built-in one, else blackpink songs have nsfw words in the korean language and the lavalink is denying it

devoxin commented 4 months ago

Lavalink does not block any tracks even if they are explicit

ayaweeb commented 4 months ago

Lavalink does not block any tracks even if they are explicit

oh? weird, cause it happened to me after removing the account from yt config

ErrorDoc404 commented 4 months ago

can i have the applicaition.yml file for plugins because when I am trying to configure its not working

I have tried shoukaku, erela, poru

ayaweeb commented 4 months ago

can i have the applicaition.yml file for plugins because when I am trying to configure its not working

I have tried shoukaku, erela, poru

sure, here is it: lavalink-configuration.zip

devoxin commented 4 months ago

Lavalink does not block any tracks even if they are explicit

oh? weird, cause it happened to me after removing the account from yt config

Do you have the TVHTML5EMBEDDED client enabled?

Fizayy commented 4 months ago

With Spotify, I'm like you, maybe it's not just Youtube...

ayaweeb commented 4 months ago

Lavalink does not block any tracks even if they are explicit

oh? weird, cause it happened to me after removing the account from yt config

Do you have the TVHTML5EMBEDDED client enabled?

Oh THAT'S WHAT IT WAS FOR? omggg i am such an idiot

Fizayy commented 4 months ago

Did music working for someone ? In my case, it found the music, start and instant stop...

ayaweeb commented 4 months ago

add more clients to lavalink application config. I did the same and worked afterwards

ErrorDoc404 commented 4 months ago

can i have the applicaition.yml file for plugins because when I am trying to configure its not working I have tried shoukaku, erela, poru

sure, here is it: lavalink-configuration.zip

mine works after this

Gabry2790 commented 4 months ago

There is any temporary fix for this?

devoxin commented 4 months ago

As I mentioned earlier in the threads, provide logs.

Fizayy commented 4 months ago

There is no error crash or something, it's just starting and instant finishing

devoxin commented 4 months ago

Logs provide more details than just an error. Please provide logs otherwise I can't assist.

Gabry2790 commented 4 months ago

Logs provide more details than just an error. Please provide logs otherwise I can't assist.

Here is my logs: spring.log

devoxin commented 4 months ago

Logs provide more details than just an error. Please provide logs otherwise I can't assist.

Here is my logs: spring.log

2024-06-22T15:18:04.108Z TRACE 28 --- [XNIO-1 I/O-2] lavalink.server.io.SocketContext         : Sent {"op":"event","type":"TrackExceptionEvent","guildId":"1094611468571377754","track":{"encoded":"QAAApQMADU1FVEFNT1JQSE9TSVMACklOVEVSV09STEQAAAAAAAIumAALbEp2Um9oWVNyWk0AAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1sSnZSb2hZU3JaTQEAMGh0dHBzOi8vaS55dGltZy5jb20vdmkvbEp2Um9oWVNyWk0vbXFkZWZhdWx0LmpwZwAAB3lvdXR1YmUAAAAAAAAAAA==","info":{"identifier":"lJvRohYSrZM","isSeekable":true,"author":"INTERWORLD","length":143000,"isStream":false,"position":0,"title":"METAMORPHOSIS","uri":"https://www.youtube.com/watch?v=lJvRohYSrZM","sourceName":"youtube","artworkUrl":"https://i.ytimg.com/vi/lJvRohYSrZM/mqdefault.jpg","isrc":null},"pluginInfo":{},"userData":{}},"exception":{"message":"This video is unavailable","severity":"common","cause":"com.sedmelluq.discord.lavaplayer.tools.FriendlyException: This video is unavailable"}}

clients=[MUSIC, ANDROID, WEB]

Add more clients, as was already stated earlier in this thread. Edit: And also disable ANDROID's playback capabilities. It's broken with no known fix.

Gabry2790 commented 4 months ago

What clients should I add? This problem happens also with Spotify. The bot enters the vocal, fetch the song and leaves.

devoxin commented 4 months ago

That's up to you based on your requirements. At the very least, I would add ANDROID_TESTSUITE but if you wanted to add any more that would be at your own discretion.

Also why would Spotify be any different? It mirrors to whatever providers you have set, which tend to include youtube.

Gabry2790 commented 4 months ago

That's up to you based on your requirements. At the very least, I would add ANDROID_TESTSUITE but if you wanted to add any more that would be at your own discretion.

Also why would Spotify be any different? It mirrors to whatever providers you have set, which tend to include youtube.

Doesn't work, these are the clients:

Fizayy commented 4 months ago

Here my logs when i try to find a music and play it music.log

devoxin commented 4 months ago

Here my logs when i try to find a music and play it music.log

These are not your complete logs, nor have you enabled debug.

happyzxzxz commented 3 months ago

I have same Issue, check the end of the log spring (1).log

devoxin commented 3 months ago

I have same Issue, check the end of the log spring (1).log

2024-07-03T22:05:33.572+02:00 DEBUG 17 --- [main] d.l.youtube.plugin.YoutubePluginLoader   : No ratelimit config found, skipping setup of route planner

...

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: This video is unavailable
    at dev.lavalink.youtube.clients.skeleton.Client.getPlayabilityStatus(Client.java:60) ~[youtube-plugin-1.3.0.jar!/:na]
    at dev.lavalink.youtube.clients.skeleton.NonMusicClient.loadTrackInfoFromInnertube(NonMusicClient.java:98) ~[youtube-plugin-1.3.0.jar!/:na]
    at dev.lavalink.youtube.clients.skeleton.NonMusicClient.loadVideo(NonMusicClient.java:315) ~[youtube-plugin-1.3.0.jar!/:na]

Use IPv6 rotation.

Gabry2790 commented 3 months ago

Enabling HTTP/2 support resolved the issue for me

devoxin commented 3 months ago

HTTP2 does not affect YouTube playback as Lavaplayer/youtube-source uses its own HTTP client separate from Spring. That setting only affects your WS/HTTP connections to the Lavalink server.

Toggling that setting is merely a coincidence.

Gabry2790 commented 3 months ago

HTTP2 does not affect YouTube playback as Lavaplayer/youtube-source uses its own HTTP client separate from Spring. That setting only affects your WS/HTTP connections to the Lavalink server.

Toggling that setting is merely a coincidence.

So, how is my Lavalink now working again?

devoxin commented 3 months ago

The last line of my message. It literally has no bearing on the youtube source manager lol... It doesn't even use that setting.

Gabry2790 commented 3 months ago

Ok

Gabry2790 commented 3 months ago

Today doesn't work anymore spring.log

devoxin commented 3 months ago

You are still not using IP rotation nor have you enabled more clients.

2024-07-06T14:06:56.513Z  INFO 28 --- [main] d.l.youtube.plugin.YoutubePluginLoader   : YouTube source initialised with clients: WEB_REMIX, WEB, ANDROID 
2024-07-06T14:06:56.513Z DEBUG 28 --- [main] d.l.youtube.plugin.YoutubePluginLoader   : No ratelimit config found, skipping setup of route planner

Enable more clients, and enable IP rotation.

For anyone else that stumbles upon this issue, you ought to be using youtube-source by now, as well as doing what is stated above in this comment.

Closing and locking as this no longer belongs in this repo. Further issues are to be made within the youtube-source repository (providing you are using youtube-source, if you aren't, then refer to the above comment).