mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 09:34:23 +01:00
mpdstats: update last_played
This fixes #529 and brings back the old behaviour of setting last_played on every song change regardless of whether it is played to the end or skipped.
This commit is contained in:
parent
ba226f566d
commit
73a43b56a0
1 changed files with 3 additions and 0 deletions
|
|
@ -281,6 +281,9 @@ class MPDStats(object):
|
|||
'beets_item': self.get_item(path),
|
||||
}
|
||||
|
||||
self.update_item(self.now_playing['beets_item'],
|
||||
'last_played', value=int(time.time()))
|
||||
|
||||
def run(self):
|
||||
self.mpd.connect()
|
||||
events = ['player']
|
||||
|
|
|
|||
Loading…
Reference in a new issue