From 40eef2056cedee5b9cc5f1d01d89a67ca85fc8ee Mon Sep 17 00:00:00 2001 From: Artem Utin Date: Tue, 24 Jan 2017 11:41:26 +1000 Subject: [PATCH] Add changelog entry, wrap long comment lines. --- beetsplug/mpdstats.py | 7 +++++-- docs/changelog.rst | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/beetsplug/mpdstats.py b/beetsplug/mpdstats.py index 9f63181b9..bcc3da808 100644 --- a/beetsplug/mpdstats.py +++ b/beetsplug/mpdstats.py @@ -266,8 +266,11 @@ class MPDStats(object): if self.now_playing: if self.now_playing['path'] != path: self.handle_song_change(self.now_playing) - else: # in case we got mpd play event with same song playing multiple times - # assume low diff means redundant second play event after natural song start + else: + # In case we got mpd play event with same song playing + # multiple times, + # assume low diff means redundant second play event + # after natural song start. diff = abs(time.time() - self.now_playing['started']) if diff <= self.time_threshold: diff --git a/docs/changelog.rst b/docs/changelog.rst index 667d9b99f..3ab7940e2 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -31,6 +31,7 @@ Fixes: * :doc:`/plugins/bpd`: Report playback times as integer. :bug:`2394` * :doc:`/plugins/mpdstats`: Fix Python 3 compatibility. The plugin also now requires version 0.4.2 or later of the ``python-mpd2`` library. :bug:`2405` +* :doc:`/plugins/mpdstats`: Improve handling of mpd status queries. 1.4.3 (January 9, 2017)