From 7c817ba0c6ff14530cc8d4c779cd31ad1f7a807f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 13 Feb 2019 17:25:52 +0100 Subject: [PATCH] Position is expressed in milliseconds on mopidy websocket, convert to seconds --- platypush/backend/music/mopidy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/music/mopidy.py b/platypush/backend/music/mopidy.py index cb4de90e7..a6233cc2b 100644 --- a/platypush/backend/music/mopidy.py +++ b/platypush/backend/music/mopidy.py @@ -169,7 +169,7 @@ class MusicMopidyBackend(Backend): self.bus.post(MuteChangeEvent(mute=status['mute'], status=status, track=track)) elif event == 'seeked': - status['position'] = msg.get('time_position') + status['position'] = msg.get('time_position')/1000 self.bus.post(SeekChangeEvent(position=status['position'], status=status, track=track)) elif event == 'tracklist_changed':