Ricerca Globale:

- Aggiunto nome Canale
 - Aggiunto colore di selezione
 - Pulizia delle variabili dopo la ricerca
This commit is contained in:
Alhaziel01
2020-12-02 15:49:54 +01:00
parent c126219b03
commit d2506cb078
2 changed files with 21 additions and 4 deletions

View File

@@ -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()

View File

@@ -69,11 +69,11 @@
<left>400</left>
<top>90</top>
<width>840</width>
<height>30</height>
<height>60</height>
<!-- <font>font30_title</font> -->
<textcolor>FFFFFFFF</textcolor>
<shadowcolor>00000000</shadowcolor>
<label>$INFO[Container(102).ListItem.Label] [B][COLOR FFAAAAAA]$INFO[Container(102).ListItem.Property(year)][/COLOR][/B]</label>
<label>$INFO[Container(102).ListItem.Label] [B][COLOR FFAAAAAA]$INFO[Container(102).ListItem.Property(year)] [CR]$INFO[Container(101).ListItem.Label][/COLOR][/B]</label>
<align>left</align>
<aligny>center</aligny>
</control>
@@ -81,7 +81,7 @@
<control type="textbox">
<description>Item Title</description>
<right>40</right>
<top>90</top>
<top>91</top>
<width>200</width>
<height>30</height>
<!-- <font>font30_title</font> -->
@@ -95,7 +95,7 @@
<control type="textbox">
<description>Item Plot</description>
<left>400</left>
<top>150</top>
<top>170</top>
<width>840</width>
<height>170</height>
<!-- <font>font13</font> -->
@@ -138,6 +138,17 @@
</control>
</itemlayout>
<focusedlayout height="570" width="380">
<control type="image">
<description>Item Poster</description>
<top>0</top>
<left>0</left>
<width>380</width>
<height>570</height>
<texture colordiffuse="FF0082C2">white.png</texture>
<visible>Control.HasFocus(102)</visible>
<bordersize>6</bordersize>
<aspectratio>scale</aspectratio>
</control>
<control type="image">
<description>Item Poster</description>
<top>0</top>
@@ -160,7 +171,9 @@
</focusedlayout>
</control>
</control> <!-- END Search Result Group -->
<control type='button'>
<description>Result Overflow</description>
<top>0</top>
<left>400</left>
<width>880</width>
@@ -168,6 +181,7 @@
<texturefocus></texturefocus>
<texturenofocus></texturenofocus>
</control>
<control type="group"> <!-- Chennels Group-->
<description>Chennels Group</description>
<bottom>-100</bottom>