Add todo on taking some action when False is returned from _play()

This commit is contained in:
Stein Magnus Jodal 2010-04-28 12:27:07 +02:00
parent ddc7e07ec6
commit ac3bfc723e

View File

@ -547,6 +547,10 @@ class BasePlaybackController(object):
self.current_track = track
self.state = self.PLAYING
# TODO Do something sensible when _play() returns False, like calling
# next(). Adding this todo instead of just implementing it as I want a
# test case first.
if self.random and self.current_track in self._shuffled:
self._shuffled.remove(self.current_track)