From ab47ac958a5e2c44944fca454a136e6326162adc Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Fri, 22 Jul 2016 15:33:27 +0200 Subject: [PATCH] Don't try too long to get window value --- resources/lib/player.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/player.py b/resources/lib/player.py index 60b52dd2..ed41635e 100644 --- a/resources/lib/player.py +++ b/resources/lib/player.py @@ -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