From c2770a5f6b2d3e4aa90d48a5d50a88f62473ab07 Mon Sep 17 00:00:00 2001 From: gdtwst Date: Wed, 4 Oct 2017 19:10:59 +0700 Subject: [PATCH] Enable play counts for repeated plays of the same song. --- beetsplug/mpdstats.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beetsplug/mpdstats.py b/beetsplug/mpdstats.py index 11fb44e4d..df016c77e 100644 --- a/beetsplug/mpdstats.py +++ b/beetsplug/mpdstats.py @@ -271,6 +271,9 @@ class MPDStats(object): if diff <= self.time_threshold: return + + if self.now_playing['path'] == path and played == 0: + self.handle_song_change(self.now_playing) if is_url(path): self._log.info(u'playing stream {0}', displayable_path(path))