mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 01:23:09 +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),
|
'beets_item': self.get_item(path),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.update_item(self.now_playing['beets_item'],
|
||||||
|
'last_played', value=int(time.time()))
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.mpd.connect()
|
self.mpd.connect()
|
||||||
events = ['player']
|
events = ['player']
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue