Position is expressed in milliseconds on mopidy websocket, convert to seconds

This commit is contained in:
Fabio Manganiello 2019-02-13 17:25:52 +01:00
parent 27e4ea5b5b
commit 7c817ba0c6

View file

@ -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':