From 2af3a6e098c783a1614fc8f6b88fc91e1a6608ba Mon Sep 17 00:00:00 2001 From: Alfa <30527549+alfa-addon@users.noreply.github.com> Date: Thu, 14 Jun 2018 12:42:29 -0500 Subject: [PATCH] add test --- plugin.video.alfa/platformcode/platformtools.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugin.video.alfa/platformcode/platformtools.py b/plugin.video.alfa/platformcode/platformtools.py index 88866089..bc11e5a9 100644 --- a/plugin.video.alfa/platformcode/platformtools.py +++ b/plugin.video.alfa/platformcode/platformtools.py @@ -493,6 +493,20 @@ def set_context_commands(item, parent_item): (sys.argv[0], item.clone(channel="favorites", action="addFavourite", from_channel=item.channel, from_action=item.action).tourl()))) + #Herramientas de desarrollador + from core import filetools + + test_path = os.path.join(config.get_runtime_path(), "channels/test.py") + + if parent_item.action == 'filterchannels' and item.action == 'mainlist' and filetools.exists(test_path): + + channel_parameters = channeltools.get_channel_parameters(item.channel) + context_commands.append(("TESTEAR ESTE CANAL", + "XBMC.RunPlugin(%s?%s)" % + (sys.argv[0], + Item(channel='test', action='channel_test', + config=channel_parameters['channel']).tourl()))) + # Buscar en otros canales if item.contentType in ['movie', 'tvshow'] and item.channel != 'search': # Buscar en otros canales