Fix BasePlaybackController with respect to test_next_track_at_end_of_playlist_with_repeat

This commit is contained in:
Thomas Adamcik 2010-04-06 22:36:35 +02:00
parent ef56004031
commit b77311e162

View File

@ -321,6 +321,9 @@ class BasePlaybackController(object):
if self.current_track is None:
return tracks[0]
if self.repeat:
return tracks[(self.playlist_position + 1) % len(tracks)]
try:
return tracks[self.playlist_position + 1]
except IndexError: