From 9a37482b5e7dfb91b42008133490321a5b5dce39 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Wed, 2 Dec 2020 16:20:53 +0100 Subject: [PATCH] Ricerca Globale: - Aggiunto "Aggiungi ai preferiti" - Risultati Semitrasparenti se non selezionati --- channels/mediasetplay.py | 1 + platformcode/globalsearch.py | 3 ++- resources/skins/Default/720p/GlobalSearch.xml | 19 ++++++++++++++++--- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/channels/mediasetplay.py b/channels/mediasetplay.py index 11e38eb1..3220d082 100644 --- a/channels/mediasetplay.py +++ b/channels/mediasetplay.py @@ -201,6 +201,7 @@ def play(item): support.info() if not item.urls: urls = item.url else: urls = item.urls + data = '' for url in urls: new_url = support.httptools.downloadpage(url, allow_redirects=True).url if '.mpd' in new_url: diff --git a/platformcode/globalsearch.py b/platformcode/globalsearch.py index 6e85e481..c9228b8c 100644 --- a/platformcode/globalsearch.py +++ b/platformcode/globalsearch.py @@ -582,9 +582,10 @@ class SearchWindow(xbmcgui.WindowXML): pos = self.RESULTS.getSelectedPosition() name = self.CHANNELS.getSelectedItem().getLabel() item = self.results[name][0][pos] - context = [config.get_localized_string(70739), config.get_localized_string(70557), config.get_localized_string(60359)] + context = [config.get_localized_string(70739), config.get_localized_string(70557), config.get_localized_string(30155), config.get_localized_string(60359)] context_commands = ["RunPlugin(%s?%s)" % (sys.argv[0], 'action=open_browser&url=' + item.url), "RunPlugin(%s?%s&%s)" % (sys.argv[0], item.tourl(), 'channel=kodfavorites&action=addFavourite&from_channel=' + item.channel + '&from_action=' + item.action), + "RunPlugin(%s?%s&%s)" % (sys.argv[0], item.tourl(), 'channel=favorites&action=addFavourite&from_channel=' + item.channel + '&from_action=' + item.action), "RunPlugin(%s?%s)" % (sys.argv[0], 'channel=trailertools&action=buscartrailer&contextual=True&search_title=' + item.contentTitle if item.contentTitle else item.fulltitle)] if item.contentType == 'movie': context += [config.get_localized_string(60353), config.get_localized_string(60354)] diff --git a/resources/skins/Default/720p/GlobalSearch.xml b/resources/skins/Default/720p/GlobalSearch.xml index d3d424b4..82af6ac5 100644 --- a/resources/skins/Default/720p/GlobalSearch.xml +++ b/resources/skins/Default/720p/GlobalSearch.xml @@ -117,6 +117,17 @@ horizontal 300 + + Item Poster + 300 + 0 + 180 + 270 + $INFO[ListItem.Property(thumb)] + !Control.HasFocus(102) + 10 + scale + Item Poster 300 @@ -124,6 +135,7 @@ 180 270 $INFO[ListItem.Property(thumb)] + Control.HasFocus(102) 10 scale @@ -144,9 +156,9 @@ 0 380 570 - white.png - Control.HasFocus(102) - 6 + $INFO[ListItem.Property(thumb)] + !Control.HasFocus(102) + 10 scale @@ -156,6 +168,7 @@ 380 570 $INFO[ListItem.Property(thumb)] + Control.HasFocus(102) 10 scale