aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-05-28 20:45:49 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-05-28 20:45:49 +0200
commitb984be919754018aa48bba1bf134da03c9baf2a8 (patch)
treed797950454eb21837e7808b4daebf7882f53a370
parentae2620f84494dd7f816bba51ed7d48039090ed07 (diff)
downloadWRMS-b984be919754018aa48bba1bf134da03c9baf2a8.tar.gz
WRMS-b984be919754018aa48bba1bf134da03c9baf2a8.zip
fix next song not beeing removed from the playlist
-rw-r--r--wrms.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/wrms.go b/wrms.go
index 6696bb2..6dc7af8 100644
--- a/wrms.go
+++ b/wrms.go
@@ -127,6 +127,8 @@ func (wrms *Wrms) Next() {
return
}
+ wrms.CurrentSong = *next
+
llog.Info("popped next song and removing it from the song list %v", next)
for i, s := range wrms.Songs {
@@ -137,7 +139,6 @@ func (wrms *Wrms) Next() {
}
}
- wrms.CurrentSong = *next
if wrms.Playing {
wrms.startPlaying()
}