core.playback: Simplify if stmt
tracklist.tl_tracks is always a list
This commit is contained in:
parent
b6346f1c86
commit
d636f0d228
@ -173,10 +173,7 @@ class PlaybackController(object):
|
|||||||
|
|
||||||
Used by :class:`mopidy.core.TracklistController`.
|
Used by :class:`mopidy.core.TracklistController`.
|
||||||
"""
|
"""
|
||||||
|
if self.current_tl_track not in self.core.tracklist.tl_tracks:
|
||||||
if (not self.core.tracklist.tl_tracks or
|
|
||||||
self.current_tl_track not in
|
|
||||||
self.core.tracklist.tl_tracks):
|
|
||||||
self.stop(clear_current_track=True)
|
self.stop(clear_current_track=True)
|
||||||
|
|
||||||
def next(self):
|
def next(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user