mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
bpd: avoid sending playlist events on navigation
This commit is contained in:
parent
5187100294
commit
cc2c35221d
1 changed files with 0 additions and 2 deletions
|
|
@ -627,7 +627,6 @@ class BaseServer(object):
|
||||||
"""Advance to the next song in the playlist."""
|
"""Advance to the next song in the playlist."""
|
||||||
old_index = self.current_index
|
old_index = self.current_index
|
||||||
self.current_index = self._succ_idx()
|
self.current_index = self._succ_idx()
|
||||||
self._send_event('playlist')
|
|
||||||
if self.consume:
|
if self.consume:
|
||||||
# TODO how does consume interact with single+repeat?
|
# TODO how does consume interact with single+repeat?
|
||||||
self.playlist.pop(old_index)
|
self.playlist.pop(old_index)
|
||||||
|
|
@ -648,7 +647,6 @@ class BaseServer(object):
|
||||||
"""Step back to the last song."""
|
"""Step back to the last song."""
|
||||||
old_index = self.current_index
|
old_index = self.current_index
|
||||||
self.current_index = self._prev_idx()
|
self.current_index = self._prev_idx()
|
||||||
self._send_event('playlist')
|
|
||||||
if self.consume:
|
if self.consume:
|
||||||
self.playlist.pop(old_index)
|
self.playlist.pop(old_index)
|
||||||
if self.current_index < 0:
|
if self.current_index < 0:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue