Fix Plex Companion seeking

This commit is contained in:
croneter 2018-11-06 18:16:32 +01:00
parent a75afc109c
commit ff6f056bca

View file

@ -286,10 +286,10 @@ def millis_to_kodi_time(milliseconds):
} }
Pass in the time in milliseconds as an int Pass in the time in milliseconds as an int
""" """
seconds = milliseconds / 1000 seconds = int(milliseconds / 1000)
minutes = seconds / 60 minutes = int(seconds / 60)
hours = minutes / 60
seconds = seconds % 60 seconds = seconds % 60
hours = int(minutes / 60)
minutes = minutes % 60 minutes = minutes % 60
milliseconds = milliseconds % 1000 milliseconds = milliseconds % 1000
return {'hours': hours, return {'hours': hours,