From bc0af7e372e695e34694c7789fb3620b90582d8d Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Wed, 24 Nov 2021 17:47:59 +0100 Subject: [PATCH] Fix Riproduci da finestra informazioni in adesso in onda --- platformcode/launcher.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/platformcode/launcher.py b/platformcode/launcher.py index ae853493..7172eaef 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -300,7 +300,17 @@ def run(item=None): # For all other actions else: - # import web_pdb; web_pdb.set_trace() + reload = False + from core import db + if db['OnPlay'].get('addon', False): + reload = True + db['OnPlay']['addon'] = False + db.close() + if reload: + import xbmc + xbmc.Player().play() + return xbmc.executebuiltin("Container.Update(" + sys.argv[0] + "?" + item.tourl() + ")") + logger.debug("Executing channel '%s' method" % item.action) itemlist = getattr(channel, item.action)(item) if config.get_setting('trakt_sync'):