Fix runtime error

This commit is contained in:
angelblue05 2018-09-09 03:44:25 -05:00
parent 8cb4000469
commit b86e5d1f2e

View file

@ -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'])