Fix TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
This commit is contained in:
parent
0d94a633e0
commit
4a83aae573
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ def _conclude_playback(playqueue, pos):
|
|||
if v.KODIVERSION >= 18 and api:
|
||||
# Kodi 18 Alpha 3 broke StartOffset
|
||||
try:
|
||||
percent = item.offset / api.runtime() * 100.0
|
||||
percent = (item.offset or api.resume_point()) / api.runtime() * 100.0
|
||||
except ZeroDivisionError:
|
||||
percent = 0.0
|
||||
LOG.debug('Resuming at %s percent', percent)
|
||||
|
|
Loading…
Reference in a new issue