Use float for resume and runtime instead of int
This commit is contained in:
parent
7b4a3da023
commit
6a66acb44c
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue