Use float instead of int for resume

This commit is contained in:
croneter 2018-05-27 11:13:19 +02:00
parent 60bfff16dd
commit ecc67b5707

View file

@ -485,7 +485,7 @@ class API(object):
resume = float(self.item.attrib['viewOffset'])
except (KeyError, ValueError):
resume = 0.0
return int(resume * v.PLEX_TO_KODI_TIMEFACTOR)
return resume * v.PLEX_TO_KODI_TIMEFACTOR
def resume_runtime(self):
"""