From 6a66acb44c9d124e6abbcdbf458c44a693af2df9 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 27 May 2018 10:52:04 +0200 Subject: [PATCH] Use float for resume and runtime instead of int --- resources/lib/PlexAPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 2a3d869e..f523d71f 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -504,8 +504,8 @@ class API(object): resume = float(self.item.attrib['viewOffset']) except (KeyError, ValueError): resume = 0.0 - runtime = int(runtime * v.PLEX_TO_KODI_TIMEFACTOR) - resume = int(resume * v.PLEX_TO_KODI_TIMEFACTOR) + runtime = runtime * v.PLEX_TO_KODI_TIMEFACTOR + resume = resume * v.PLEX_TO_KODI_TIMEFACTOR return resume, runtime def content_rating(self):