From 6422964468217f3be5a5096103ec9c8a166dc6b2 Mon Sep 17 00:00:00 2001 From: marco Date: Wed, 13 May 2020 10:36:13 +0200 Subject: [PATCH] vista server per la ricerca globale --- platformcode/platformtools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index a9d4aee0..69f26e99 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -240,9 +240,9 @@ def getCurrentView(item=None, parent_item=None): if not item: info = xbmc.getInfoLabel('Container.ListItem(1).FileNameAndPath') item = Item().fromurl(info) if info else Item() - parent_actions = ['peliculas', 'novedades', 'search', 'get_from_temp', 'channel_search', 'newest', 'discover_list', 'new_search'] + parent_actions = ['peliculas', 'novedades', 'search', 'get_from_temp', 'newest', 'discover_list'] - if parent_item.action == 'findvideos': + if parent_item.action == 'findvideos' or parent_item.action in ['channel_search', 'new_search']: return 'server', 'addons' if config.get_setting('touch_view') else '' elif parent_item.action == 'mainlist': @@ -725,7 +725,7 @@ def set_context_commands(item, item_url, parent_item, **kwargs): # Add to kodfavoritos (My links) if item.channel not in ["favorites", "videolibrary", "help", ""] and parent_item.channel != "favorites": - context_commands.append( (config.get_localized_string(70557), "XBMC.RunPlugin(%s?%s&%s)" % (sys.argv[0], item_url, urllib.urlencode({'channel': "kodfavourites", 'action': "addFavourite", 'from_channel': item.channel, 'from_action': item.action})))) + context_commands.append( (config.get_localized_string(70557), "XBMC.RunPlugin(%s?%s&%s)" % (sys.argv[0], item_url, urllib.urlencode({'channel': "kodfavorites", 'action': "addFavourite", 'from_channel': item.channel, 'from_action': item.action})))) # Search in other channels if item.contentType in ['movie', 'tvshow'] and item.channel != 'search' and item.action not in ['play'] and parent_item.action != 'mainlist':