diff --git a/mopidy/backends/base/playback.py b/mopidy/backends/base/playback.py index 88617d83..2cf15629 100644 --- a/mopidy/backends/base/playback.py +++ b/mopidy/backends/base/playback.py @@ -370,6 +370,9 @@ class BasePlaybackController(object): self.next() return + self._play_time_started = self._current_wall_time + self._play_time_accumulated = time_position + self._seek(time_position) def _seek(self, time_position): diff --git a/mopidy/frontends/mpd/protocol/playback.py b/mopidy/frontends/mpd/protocol/playback.py index cf803c6d..58cd02fd 100644 --- a/mopidy/frontends/mpd/protocol/playback.py +++ b/mopidy/frontends/mpd/protocol/playback.py @@ -293,7 +293,7 @@ def seek(frontend, songpos, seconds): Seeks to the position ``TIME`` (in seconds) of entry ``SONGPOS`` in the playlist. """ - raise MpdNotImplemented # TODO + return frontend.backend.playback.seek(int(seconds) * 1000) @handle_pattern(r'^seekid "(?P\d+)" "(?P\d+)"$') def seekid(frontend, cpid, seconds):