From b590cfebf2544895c0289ce7508d8731cd506dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johann=20Kl=C3=A4hn?= Date: Wed, 4 Jun 2014 15:41:15 +0200 Subject: [PATCH] mpdstats: update rating on 'stop' (e.g. last song in playlist) Fixes #772 --- beetsplug/mpdstats.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beetsplug/mpdstats.py b/beetsplug/mpdstats.py index 41a0e7d6a..56522a8de 100644 --- a/beetsplug/mpdstats.py +++ b/beetsplug/mpdstats.py @@ -245,6 +245,10 @@ class MPDStats(object): def on_stop(self, status): log.info(u'mpdstats: stop') + + if self.now_playing: + self.handle_song_change(self.now_playing) + self.now_playing = None def on_pause(self, status):