mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 12:32:33 +01:00
Merge pull request #806 from kljohann/on_stop
mpdstats: update rating on 'stop' (e.g. last song in playlist)
This commit is contained in:
commit
94ceba40d4
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