Add todo on taking some action when False is returned from _play()
This commit is contained in:
parent
ddc7e07ec6
commit
ac3bfc723e
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user