Merge pull request #806 from kljohann/on_stop

mpdstats: update rating on 'stop' (e.g. last song in playlist)
This commit is contained in:
Adrian Sampson 2014-06-04 17:14:31 -07:00
commit 94ceba40d4

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