Skip to content

Commit

Permalink
Increment playlist_version when a track is consumed.
Browse files Browse the repository at this point in the history
This fixes the playlist not updating when in consume mode, at least in
ncmpcpp.
  • Loading branch information
aereaux committed Nov 25, 2019
1 parent 6528609 commit 9c47965
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beetsplug/bpd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,8 @@ def cmd_next(self, conn):
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:
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 9c47965

Please sign in to comment.