Don't try too long to get window value
This commit is contained in:
parent
dd1f50efe6
commit
ab47ac958a
1 changed files with 1 additions and 2 deletions
|
@ -81,8 +81,7 @@ class Player(xbmc.Player):
|
||||||
while not itemId:
|
while not itemId:
|
||||||
xbmc.sleep(200)
|
xbmc.sleep(200)
|
||||||
itemId = window("emby_%s.itemid" % currentFile)
|
itemId = window("emby_%s.itemid" % currentFile)
|
||||||
# try 20 times or about 10 seconds
|
if count == 5:
|
||||||
if count == 20:
|
|
||||||
self.logMsg("Could not find itemId, cancelling playback "
|
self.logMsg("Could not find itemId, cancelling playback "
|
||||||
"report!", -1)
|
"report!", -1)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue