mirror of
https://github.com/beetbox/beets.git
synced 2026-01-05 15:33:15 +01:00
mpdstats: update rating on 'stop' (e.g. last song in playlist)
Fixes #772
This commit is contained in:
parent
ee16396f8c
commit
b590cfebf2
1 changed files with 4 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue