Fix BasePlaybackController with respect to test_next_track_at_end_of_playlist_with_repeat
This commit is contained in:
parent
ef56004031
commit
b77311e162
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user