mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +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:
|
try:
|
||||||
item['Runtime'] = int(item['Runtime'])
|
item['Runtime'] = int(item['Runtime'])
|
||||||
except ValueError:
|
except (TypeError, ValueError):
|
||||||
try:
|
try:
|
||||||
item['Runtime'] = int(self.getTotalTime())
|
item['Runtime'] = int(self.getTotalTime())
|
||||||
LOG.info("Runtime is missing, Kodi runtime: %s" % item['Runtime'])
|
LOG.info("Runtime is missing, Kodi runtime: %s" % item['Runtime'])
|
||||||
|
|
Loading…
Reference in a new issue