From 1bc5a3c118df423f68e4e6491e33c5c6dee9ffee Mon Sep 17 00:00:00 2001 From: MoojMidge <56883549+MoojMidge@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:54:35 +1100 Subject: [PATCH] Allow for deferred RunPlugin action to prevent multiple busy dialog crashes --- .../lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py b/resources/lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py index efd4829af..ceb8d775c 100644 --- a/resources/lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py +++ b/resources/lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py @@ -327,6 +327,11 @@ def uri_action(context, uri): action = 'PlayMedia({0}, playlist_type_hint=1)'.format(uri) result = True + elif uri.startswith('RunPlugin('): + context.log_debug('Running plugin: |{0}|'.format(uri)) + action = uri + result = False + elif context.is_plugin_path(uri): context.log_debug('Redirecting to: |{0}|'.format(uri)) uri = urlsplit(uri)