remove consume on next() since it should be performed only at end of track
This commit is contained in:
parent
6905b81009
commit
4e0b51ffbd
@ -322,18 +322,12 @@ class BasePlaybackController(object):
|
|||||||
if self.state == self.STOPPED:
|
if self.state == self.STOPPED:
|
||||||
return
|
return
|
||||||
|
|
||||||
original_cp_track = self.current_cp_track
|
|
||||||
if self.cp_track_at_next:
|
if self.cp_track_at_next:
|
||||||
self.play(self.cp_track_at_next)
|
self.play(self.cp_track_at_next)
|
||||||
else:
|
else:
|
||||||
self.stop()
|
self.stop()
|
||||||
self.current_cp_track = None
|
self.current_cp_track = None
|
||||||
|
|
||||||
# FIXME This should only be applied when reaching end of track, and not
|
|
||||||
# when pressing "next"
|
|
||||||
if self.consume:
|
|
||||||
self.backend.current_playlist.remove(cpid=original_cp_track[0])
|
|
||||||
|
|
||||||
if self.random and self.current_cp_track in self._shuffled:
|
if self.random and self.current_cp_track in self._shuffled:
|
||||||
self._shuffled.remove(self.current_cp_track)
|
self._shuffled.remove(self.current_cp_track)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user