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:
|
||||
xbmc.sleep(200)
|
||||
itemId = window("emby_%s.itemid" % currentFile)
|
||||
# try 20 times or about 10 seconds
|
||||
if count == 20:
|
||||
if count == 5:
|
||||
self.logMsg("Could not find itemId, cancelling playback "
|
||||
"report!", -1)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue