Fix BasePlaybackController with respect to test_playing_track_that_isnt_in_playlist
This commit is contained in:
parent
a2cafd3da9
commit
ca752c8d94
@ -528,7 +528,9 @@ class BasePlaybackController(object):
|
||||
:type track: :class:`mopidy.models.Track` or :class:`None`
|
||||
"""
|
||||
|
||||
if not track and not self.current_track:
|
||||
if track:
|
||||
assert track in self.backend.current_playlist.playlist.tracks
|
||||
elif not self.current_track:
|
||||
track = self.next_track
|
||||
|
||||
if self.state == self.PAUSED and track is None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user