If queues empty spotify won't pause anymore
This commit is contained in:
parent
d40affac9a
commit
35ffca5d8d
2 changed files with 22 additions and 20 deletions
|
|
@ -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 }));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue