mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix runtime error
This commit is contained in:
parent
8cb4000469
commit
b86e5d1f2e
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ class Player(xbmc.Player):
|
|||
'''
|
||||
try:
|
||||
item['Runtime'] = int(item['Runtime'])
|
||||
except ValueError:
|
||||
except (TypeError, ValueError):
|
||||
try:
|
||||
item['Runtime'] = int(self.getTotalTime())
|
||||
LOG.info("Runtime is missing, Kodi runtime: %s" % item['Runtime'])
|
||||
|
|
Loading…
Reference in a new issue