core.tracklist: Improve if check in mark_unplayable()

This commit is contained in:
Stein Magnus Jodal 2013-10-19 20:52:21 +02:00
parent 46aeb3bfcc
commit 9864f55b75

View File

@ -439,7 +439,7 @@ class TracklistController(object):
def mark_unplayable(self, tl_track):
"""Private method used by :class:`mopidy.core.PlaybackController`."""
logger.warning('Track is not playable: %s', tl_track.track.uri)
if self.random and self._shuffled:
if self.random and tl_track in self._shuffled:
self._shuffled.remove(tl_track)
def mark_played(self, tl_track):