diff --git a/platformcode/config.py b/platformcode/config.py index f26ae0f0..a16f992f 100644 --- a/platformcode/config.py +++ b/platformcode/config.py @@ -468,4 +468,4 @@ def verify_directories_created(): def get_online_server_thumb(server): - return "https://raw.github.com/kodiondemand/media/master/resources/servers/" + server.lower() + '.png' \ No newline at end of file + return "https://raw.github.com/kodiondemand/media/master/resources/servers/" + server.lower().replace('_server','') + '.png' \ No newline at end of file diff --git a/platformcode/launcher.py b/platformcode/launcher.py index ca231441..022cea2d 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -450,15 +450,15 @@ def play_from_library(item): import xbmcgui, xbmcplugin, xbmc from time import sleep + # logger.debug("item: \n" + item.tostring('\n')) + platformtools.prevent_busy(item) + itemlist=[] item.fromLibrary = True item.window = True logger.debug() - # logger.debug("item: \n" + item.tostring('\n')) - xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=os.path.join(config.get_runtime_path(), "resources", "kod.mp4"))) - xbmc.Player().stop() - # Modify the action (currently the video library needs "findvideos" since this is where the sources are searched + # Modify the action (currently the video library needs "findvideos" since this is where the sources are searched item.action = "findvideos" window_type = config.get_setting("window_type", "videolibrary") diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index 2a9b6a14..f6e6eca6 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -1439,6 +1439,9 @@ def prevent_busy(item): if not item.autoplay and not item.window: if item.globalsearch: xbmc.Player().play(os.path.join(config.get_runtime_path(), "resources", "kod.mp4")) else: xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=os.path.join(config.get_runtime_path(), "resources", "kod.mp4"))) - xbmc.sleep(500) + xbmc.sleep(100) xbmc.Player().stop() - xbmc.sleep(500) \ No newline at end of file + # xbmc.executebuiltin('Action(Stop)') + # xbmc.sleep(500) + # xbmc.Player().stop() + # xbmc.sleep(500) \ No newline at end of file