Fix Plex Companion seeking
This commit is contained in:
parent
a75afc109c
commit
ff6f056bca
1 changed files with 3 additions and 3 deletions
|
@ -286,10 +286,10 @@ def millis_to_kodi_time(milliseconds):
|
||||||
}
|
}
|
||||||
Pass in the time in milliseconds as an int
|
Pass in the time in milliseconds as an int
|
||||||
"""
|
"""
|
||||||
seconds = milliseconds / 1000
|
seconds = int(milliseconds / 1000)
|
||||||
minutes = seconds / 60
|
minutes = int(seconds / 60)
|
||||||
hours = minutes / 60
|
|
||||||
seconds = seconds % 60
|
seconds = seconds % 60
|
||||||
|
hours = int(minutes / 60)
|
||||||
minutes = minutes % 60
|
minutes = minutes % 60
|
||||||
milliseconds = milliseconds % 1000
|
milliseconds = milliseconds % 1000
|
||||||
return {'hours': hours,
|
return {'hours': hours,
|
||||||
|
|
Loading…
Reference in a new issue