diff --git a/plugin.video.alfa/channels/setting.py b/plugin.video.alfa/channels/setting.py index a22d45c9..cc1b95b1 100644 --- a/plugin.video.alfa/channels/setting.py +++ b/plugin.video.alfa/channels/setting.py @@ -296,16 +296,8 @@ def submenu_tools(item): #Herramientas de testeo masivo import os test_path = os.path.join(config.get_runtime_path(), "channels/test.py") - if filetools.exists(test_path): - itemlist.append(Item(channel=CHANNELNAME, title="Herramientas de Testeo masivo", action="", folder=False, - thumbnail=get_thumb("channels.png"))) - itemlist.append(Item(title='- Testear canales ...', channel="test", action="channel_test_selected")) - itemlist.append(Item(title='- Testear servidores ...', channel="test", action="server_test_selected")) - itemlist.append(Item(title='- Testear todos los canales!', channel="test", action="channel_test_all")) - itemlist.append(Item(title='- Testear todos los servidores!', channel="test", action="server_test_all")) - itemlist.append(Item(title='- Testear novedades!', channel="test", action="news_test_all")) - itemlist.append(Item(title='- Upload tests to web!', channel="test", action="web_update_tests")) + itemlist.append(Item(title='Testear canales y servidores ...', channel="test", action="mainlist")) itemlist.append( Item(channel=CHANNELNAME, action="", title="", folder=False, thumbnail=get_thumb("setting_0.png"))) diff --git a/plugin.video.alfa/platformcode/platformtools.py b/plugin.video.alfa/platformcode/platformtools.py index bff09bc0..77a0fc61 100644 --- a/plugin.video.alfa/platformcode/platformtools.py +++ b/plugin.video.alfa/platformcode/platformtools.py @@ -59,6 +59,10 @@ def dialog_select(heading, _list): return xbmcgui.Dialog().select(heading, _list) +def dialog_multiselect(heading, _list, autoclose=0, preselect=[], useDetails=False): + return xbmcgui.Dialog().multiselect(heading, _list, autoclose=autoclose, preselect=preselect, useDetails=useDetails) + + def dialog_progress(heading, line1, line2=" ", line3=" "): dialog = xbmcgui.DialogProgress() dialog.create(heading, line1, line2, line3) @@ -496,19 +500,6 @@ 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': @@ -522,7 +513,6 @@ def set_context_commands(item, parent_item): item.clone(channel='search', action="do_search", from_channel=item.channel, - contextual=True).tourl()))) if item.contentType == 'tvshow': mediatype = 'tv' @@ -606,7 +596,6 @@ def set_context_commands(item, parent_item): "XBMC.Container.Update (%s?%s)" % (sys.argv[0], Item(channel='side_menu', action="open_menu", parent=parent_item.tourl()).tourl( - )))) return context_commands