From f79192b231d0ca45f028fc4ccf8825402208d34b Mon Sep 17 00:00:00 2001 From: mac12m99 Date: Mon, 26 Aug 2019 18:42:59 +0200 Subject: [PATCH] Item info --- platformcode/launcher.py | 4 +++- platformcode/platformtools.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/platformcode/launcher.py b/platformcode/launcher.py index bac2046c..099769b8 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -131,7 +131,9 @@ def run(item=None): from core import tmdb if tmdb.drop_bd(): platformtools.dialog_notification(config.get_localized_string(20000), config.get_localized_string(60011), time=2000, sound=False) - + elif item.action == "itemInfo": + import base64 + platformtools.dialog_textviewer('Item info', item.parent) # Action in certain channel specified in "action" and "channel" parameters else: # Entry point for a channel is the "mainlist" action, so here we check parental control diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index e3c3a77c..6cd327a7 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -658,6 +658,10 @@ def set_context_commands(item, parent_item): action="open_menu", parent=parent_item.tourl()).tourl( )))) + if config.dev_mode(): + context_commands.insert(1, ("item info", + "XBMC.Container.Update (%s?%s)" % (sys.argv[0], Item(action="itemInfo", + parent=parent_item.tojson()).tourl()))) return context_commands