aboutsummaryrefslogtreecommitdiff
path: root/player.go
diff options
context:
space:
mode:
Diffstat (limited to 'player.go')
-rw-r--r--player.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/player.go b/player.go
index f8f6272..e7d1dd9 100644
--- a/player.go
+++ b/player.go
@@ -68,13 +68,11 @@ func (player *Player) runMpv() {
wrms := player.wrms
- llog.Info("mpv finished. Resetting mpv, the current song and call play")
+ llog.Info("mpv finished. Resetting mpv, and calling next")
player.mpv = nil
- wrms.Playing = false
player.Backends[wrms.CurrentSong.Source].OnSongFinished(&wrms.CurrentSong)
- wrms.CurrentSong.Uri = ""
- wrms.PlayPause()
+ wrms.Next()
}
func (player *Player) PlayUri(uri string) {