Don't try too long to get window value

This commit is contained in:
tomkat83 2016-07-22 15:33:27 +02:00
parent dd1f50efe6
commit ab47ac958a

View file

@ -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