Fix test_next_with_consume
This commit is contained in:
parent
60a0d182e2
commit
92d4b939a0
@ -117,13 +117,15 @@ class BasePlaybackController(object):
|
||||
self.stop()
|
||||
|
||||
def next(self):
|
||||
current_track = self.current_track
|
||||
|
||||
if not self.next_track:
|
||||
self.stop()
|
||||
else:
|
||||
self.play(self.next_track)
|
||||
|
||||
if self.consume:
|
||||
self.backend.current_playlist.remove(self.current_track)
|
||||
self.backend.current_playlist.remove(current_track)
|
||||
|
||||
def previous(self):
|
||||
if self.previous_track:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user