From d2506cb0781344664816871d28cc543f3e77957d Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Wed, 2 Dec 2020 15:49:54 +0100 Subject: [PATCH] Ricerca Globale: - Aggiunto nome Canale - Aggiunto colore di selezione - Pulizia delle variabili dopo la ricerca --- platformcode/globalsearch.py | 3 +++ resources/skins/Default/720p/GlobalSearch.xml | 22 +++++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/platformcode/globalsearch.py b/platformcode/globalsearch.py index f18826c1..6e85e481 100644 --- a/platformcode/globalsearch.py +++ b/platformcode/globalsearch.py @@ -238,11 +238,14 @@ class SearchWindow(xbmcgui.WindowXML): percent = (float(count) / len(self.channelsList)) * 100 self.PROGRESS.setPercent(percent) self.COUNT.setText('%s/%s' % (count, len(self.channelsList))) + self.channelsList = [] with futures.ThreadPoolExecutor(max_workers=set_workers()) as executor: for searchAction in self.searchActions: if self.exit: break executor.submit(self.get_channel_results, self.item, self.moduleDict, searchAction) + self.moduleDict = {} + self.searchActions = [] def get_channel_results(self, item, module_dict, search_action): logger.debug() diff --git a/resources/skins/Default/720p/GlobalSearch.xml b/resources/skins/Default/720p/GlobalSearch.xml index 0339037d..d3d424b4 100644 --- a/resources/skins/Default/720p/GlobalSearch.xml +++ b/resources/skins/Default/720p/GlobalSearch.xml @@ -69,11 +69,11 @@ 400 90 840 - 30 + 60 FFFFFFFF 00000000 - + left center @@ -81,7 +81,7 @@ Item Title 40 - 90 + 91 200 30 @@ -95,7 +95,7 @@ Item Plot 400 - 150 + 170 840 170 @@ -138,6 +138,17 @@ + + Item Poster + 0 + 0 + 380 + 570 + white.png + Control.HasFocus(102) + 6 + scale + Item Poster 0 @@ -160,7 +171,9 @@ + + Result Overflow 0 400 880 @@ -168,6 +181,7 @@ + Chennels Group -100