-retry start() on threads as slow systems can sometimes take a few seconds to release old threads

-check json parsing for errros and return
-if no runtime then use zero
This commit is contained in:
shaun 2017-01-07 19:19:39 +11:00
parent 4298db5f90
commit 00edbf610b
3 changed files with 29 additions and 7 deletions

View file

@ -215,8 +215,12 @@ class Player(xbmc.Player):
try:
runtime = int(runtime)
except ValueError:
runtime = self.xbmcplayer.getTotalTime()
log.info("Runtime is missing, Kodi runtime: %s" % runtime)
try:
runtime = int(self.xbmcplayer.getTotalTime())
log.info("Runtime is missing, Kodi runtime: %s" % runtime)
except:
runtime = 0
log.info("Runtime is missing, Using Zero")
# Save data map for updates and position calls
data = {