core.tracklist: Move logging into mark_unplayable()
This commit is contained in:
parent
67a7e0021a
commit
46aeb3bfcc
@ -237,7 +237,6 @@ class PlaybackController(object):
|
||||
self.core.tracklist.mark_playing(tl_track)
|
||||
self._trigger_track_playback_started()
|
||||
else:
|
||||
logger.warning('Track is not playable: %s', tl_track.track.uri)
|
||||
self.core.tracklist.mark_unplayable(tl_track)
|
||||
if on_error_step == 1:
|
||||
# TODO: can cause an endless loop for single track repeat.
|
||||
|
||||
@ -438,6 +438,7 @@ class TracklistController(object):
|
||||
|
||||
def mark_unplayable(self, tl_track):
|
||||
"""Private method used by :class:`mopidy.core.PlaybackController`."""
|
||||
logger.warning('Track is not playable: %s', tl_track.track.uri)
|
||||
if self.random and self._shuffled:
|
||||
self._shuffled.remove(tl_track)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user