From 0e875da0e8bde1243195b3592501bc09fe6fd596 Mon Sep 17 00:00:00 2001 From: Johannes Knutsen Date: Mon, 16 Aug 2010 21:01:16 +0200 Subject: [PATCH] make consume also remove the last track in cp when finished playing --- mopidy/backends/base/playback.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mopidy/backends/base/playback.py b/mopidy/backends/base/playback.py index 4dd0271b..bb0ab3dc 100644 --- a/mopidy/backends/base/playback.py +++ b/mopidy/backends/base/playback.py @@ -291,15 +291,15 @@ class BasePlaybackController(object): if self.cp_track_at_eot: self.play(self.cp_track_at_eot) - if self.consume: - self.backend.current_playlist.remove(cpid=original_cp_track[0]) - if self.random and self.current_cp_track in self._shuffled: self._shuffled.remove(self.current_cp_track) else: self.stop() self.current_cp_track = None + if self.consume: + self.backend.current_playlist.remove(cpid=original_cp_track[0]) + def on_current_playlist_change(self): """ Tell the playback controller that the current playlist has changed.