From ff6f056bca60a4d555c8c65a705ccd909334b89f Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 6 Nov 2018 18:16:32 +0100 Subject: [PATCH] Fix Plex Companion seeking --- resources/lib/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 12baf3a7..47534f66 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -286,10 +286,10 @@ def millis_to_kodi_time(milliseconds): } Pass in the time in milliseconds as an int """ - seconds = milliseconds / 1000 - minutes = seconds / 60 - hours = minutes / 60 + seconds = int(milliseconds / 1000) + minutes = int(seconds / 60) seconds = seconds % 60 + hours = int(minutes / 60) minutes = minutes % 60 milliseconds = milliseconds % 1000 return {'hours': hours,