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