Skip to content

Commit

Permalink
returned wait for non loading
Browse files Browse the repository at this point in the history
  • Loading branch information
elgatito committed May 31, 2020
1 parent 30ddade commit 4b8dbe3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/site-packages/elementum/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def OpenDirectory(self, path):
xbmc.executebuiltin('ActivateWindow(Videos,%s)' % path)

def Wait_Window_Loaded(self):
tries = 7
tries = 9
while self.Window_Is_Loading():
if tries == 0:
log.error("Failed to wait till window has finished loading")
Expand Down Expand Up @@ -198,7 +198,8 @@ def Player_Open_With_Labels(self, url, infolabels):
# return xbmc.Player().play(url, listitem=item)

def Player_Open_With_Timeout(self, item):
self.Wait_Window_Loaded()
if not self.Wait_Window_Loaded():
return

return self.Player_Open(item)

Expand Down

0 comments on commit 4b8dbe3

Please sign in to comment.