mpdstats: update rating on 'stop' (e.g. last song in playlist)

Fixes #772
This commit is contained in:
Johann Klähn 2014-06-04 15:41:15 +02:00
parent ee16396f8c
commit b590cfebf2

View file

@ -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):