If queues empty spotify won't pause anymore

This commit is contained in:
Jurn Wubben 2026-02-03 21:19:19 +01:00
parent d40affac9a
commit 35ffca5d8d
2 changed files with 22 additions and 20 deletions

View file

@ -46,7 +46,10 @@ export class SpotifyWS {
public sendSong(uri?: string) {
const song = uri ?? playerManager.getNext()?.uri;
if (!song) return;
if (!song) {
this.send(buildCommand("next_song"));
return
};
this.send(buildCommand("next_song", { song }));
}