support single mode at end of track

This commit is contained in:
Johannes Knutsen 2010-08-14 17:19:03 +02:00
parent a3b03b6356
commit 622b96ef27

View File

@ -134,6 +134,10 @@ class BasePlaybackController(object):
if self.current_cp_track is None:
return cp_tracks[0]
if self.repeat and self.single:
return cp_tracks[
(self.current_playlist_position) % len(cp_tracks)]
if self.repeat:
return cp_tracks[
(self.current_playlist_position + 1) % len(cp_tracks)]