Merge pull request #3437 from aereaux/consume_increment_playlist_version

Increment playlist_version when a track is consumed.
This commit is contained in:
Adrian Sampson 2019-11-25 08:44:52 -05:00 committed by GitHub
commit 28fb69a57a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -639,6 +639,8 @@ class BaseServer(object):
self.playlist.pop(old_index)
if self.current_index > old_index:
self.current_index -= 1
self.playlist_version += 1
self._send_event("playlist")
if self.current_index >= len(self.playlist):
# Fallen off the end. Move to stopped state or loop.
if self.repeat:

View file

@ -131,6 +131,7 @@ Fixes:
wiping out their beets database.
Thanks to :user:`logan-arens`.
:bug:`1934`
* :doc:`/plugins/bpd`: Fix the transition to next track when in consume mode.
For plugin developers: