From 928e5e1c21f2ee575201fce72a6b0f82092822f2 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Tue, 6 Apr 2010 23:34:27 +0200 Subject: [PATCH] Fix BasePlaybackController with respect to test_played_track_during_random_not_played_again and test_random_until_end_of_playlist --- mopidy/backends/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mopidy/backends/__init__.py b/mopidy/backends/__init__.py index eca6ecba..d72e3fc9 100644 --- a/mopidy/backends/__init__.py +++ b/mopidy/backends/__init__.py @@ -475,6 +475,9 @@ class BasePlaybackController(object): if self.consume: self.backend.current_playlist.remove(original_track) + if self.random: + self._shuffled.remove(self.current_track) + def _next(self, track): return self._play(track)