diff --git a/core/autoplay.py b/core/autoplay.py index 5ace4018..12e4bb3e 100644 --- a/core/autoplay.py +++ b/core/autoplay.py @@ -40,9 +40,11 @@ def start(itemlist, item): return itemlist import xbmc - control_item = Item().fromurl(xbmc.getInfoLabel('Container.FolderPath')) - if control_item.action == item.action: - return itemlist + control_info = xbmc.getInfoLabel('Container.FolderPath') + if control_info: + control_item = Item().fromurl() + if control_item.action == item.action: + return itemlist if config.get_setting('autoplay') or item.autoplay: # Save the current value of "Action and Player Mode" in preferences diff --git a/specials/globalsearch.py b/specials/globalsearch.py index 35b1c9d4..d5eb8e97 100644 --- a/specials/globalsearch.py +++ b/specials/globalsearch.py @@ -812,7 +812,7 @@ class SearchWindow(xbmcgui.WindowXML): def play(self, server=None): - platformtools.prevent_busy(server) + platformtools.prevent_busy() server.window = True server.globalsearch = True return run(server)