Fix BasePlaybackController with respect to test_previous_track_with(repeat,consume,random)

This commit is contained in:
Thomas Adamcik 2010-04-06 22:32:38 +02:00
parent c2d6f3ab89
commit ef56004031

View File

@ -345,6 +345,9 @@ class BasePlaybackController(object):
For normal playback this is the next track in the playlist. If random
and/or consume is enabled it should return the current track instead.
"""
if self.repeat or self.consume or self.random:
return self.current_track
if self.current_track is None or self.playlist_position == 0:
return None