mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-15 05:45:10 +00:00
-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:
parent
4298db5f90
commit
00edbf610b
3 changed files with 29 additions and 7 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue