-
Notifications
You must be signed in to change notification settings - Fork 47
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
[ BUG ] "reason":"STOPPED" instead of "reason":"FINISHED" #78
Comments
Was this issue resolved then? What's the status? |
I thought it got pushed but apparently not. Lemme get on that. |
It should be live now. Apparently nuget key expired. |
Glad to hear, I'll test it soon. Thanks a ton :) |
@Yucked I updated to 5.1.10 still same issues. |
Just realized you failed to provide crucial information: https://github.com/Frederikam/Lavalink/issues/408 |
@FireController1847 @dakata1337 This isn't an issue on Victoria's end. The code of extension method is fairly straight forward: public static bool ShouldPlayNext(this TrackEndReason trackEndReason) {
return trackEndReason == TrackEndReason.Finished || trackEndReason == TrackEndReason.LoadFailed;
} You can add your own check if you want, you can use switch clause, if-else statements. The provided is default. Most of the stuff provided in Victoria is default such as DefaultQueue, ArtworkResolver, LyricsResolver. Lavalink also doesn't mention anything in changelogs regarding that: https://github.com/Frederikam/Lavalink/commits/master/IMPLEMENTATION.md Now if I were to also include I apologize about me taking so long to get on it as I've work and college but please next time do provide complete info as to what you're doing. If Lavalink implements a breaking change, doesn't mention it in implementation or change log, there is no way for library supporters to know what got changed. Changelog doesn't mention that change either if https://github.com/Frederikam/Lavalink/blob/master/CHANGELOG.md |
Very interesting. I didn't know about this misunderstanding of stopped vs finished. This may be unrelated to the issue I was having, then. I use What I do know, however, is that updating fixed the issue for me :) |
I'm currently following the Lavalink issue dakata1337 opened and did ask him few questions. STOPPED was supposed to send only and only if you called StopAsync which meant to completely stop the player. But now, Lavalink is sending STOPPED for every normal track as well which is obviously going to make it extremely difficult to determine whether a user wants to stop the player all together or play the next song. |
Any updates? |
I don't manage Lavalink. According to that thread, Lavalink is sending wrong TrackFinished for tracks less than <=5 seconds. The solution was also provided above.
|
Please make sure v5.1.11 fixes your issue. |
|
Describe the bug/issue.
My discord bot has TrackEnded function. This function is triggered by Victoria when a track ends. In this function i have a check like this:
With the latest version of Lavalink when the track ends and the reason is "STOPPED". I downgraded to Lavalink 3.3.1.4 and the reason changed to "FINISHED" (as it should be).
No errors shown in Lavalink.
Stacktrace / Screenshots
With Lavalink 3.3.2.1:
[Victoria] {"op":"event","reason":"STOPPED","type":"TrackEndEvent","track":"","guildId":""}
With Lavalink 3.3.1.4:
[Victoria] {"op":"event","reason":"FINISHED","type":"TrackEndEvent","track":"","guildId":""}
The text was updated successfully, but these errors were encountered: