Could one of you guys working on Kodi comoment please make “remaining runtime” viewable in states?
I see media_seek is in the component but properties is not getting percentage.
def media_seek(self, position):
"""Send seek command."""
players = self._get_players()
time = {}
time['milliseconds'] = int((position % 1) * 1000)
position = int(position)
time['seconds'] = int(position % 60)
position /= 60
time['minutes'] = int(position % 60)
position /= 60
time['hours'] = int(position)
if len(players) != 0:
self._server.Player.Seek(players[0]['playerid'], time)
self.update_ha_state()