Use float for resume and runtime instead of int

This commit is contained in:
croneter 2018-05-27 10:52:04 +02:00
parent 7b4a3da023
commit 6a66acb44c

View file

@ -504,8 +504,8 @@ class API(object):
resume = float(self.item.attrib['viewOffset']) resume = float(self.item.attrib['viewOffset'])
except (KeyError, ValueError): except (KeyError, ValueError):
resume = 0.0 resume = 0.0
runtime = int(runtime * v.PLEX_TO_KODI_TIMEFACTOR) runtime = runtime * v.PLEX_TO_KODI_TIMEFACTOR
resume = int(resume * v.PLEX_TO_KODI_TIMEFACTOR) resume = resume * v.PLEX_TO_KODI_TIMEFACTOR
return resume, runtime return resume, runtime
def content_rating(self): def content_rating(self):