From 6e603a183b3b492a43c91d0833afc9e5f3a2f6ab Mon Sep 17 00:00:00 2001 From: Nantas Nardelli Date: Sun, 24 Jul 2016 22:26:59 +0100 Subject: [PATCH] Add TODO about checking length of track when null --- mopidy/core/playback.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mopidy/core/playback.py b/mopidy/core/playback.py index ab0bee5b..0106abf2 100644 --- a/mopidy/core/playback.py +++ b/mopidy/core/playback.py @@ -253,6 +253,8 @@ class PlaybackController(object): # Unless overridden by other calls (e.g. next / previous / stop) this # will be the last position recorded until the track gets reassigned. + # TODO: Check if case when track.length isn't populated needs to be + # handled. self._last_position = self._current_tl_track.track.length pending = self.core.tracklist.eot_track(self._current_tl_track)