Ricerca Globale: Fix e Migliorie
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
@@ -579,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)]
|
||||
|
||||
@@ -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> -->
|
||||
@@ -117,6 +117,17 @@
|
||||
<orientation>horizontal</orientation>
|
||||
<scrolltime tween="cubic" easing="out">300</scrolltime>
|
||||
<itemlayout height="570" width="180">
|
||||
<control type="image">
|
||||
<description>Item Poster</description>
|
||||
<top>300</top>
|
||||
<left>0</left>
|
||||
<width>180</width>
|
||||
<height>270</height>
|
||||
<texture colordiffuse="AAFFFFFF">$INFO[ListItem.Property(thumb)]</texture>
|
||||
<visible>!Control.HasFocus(102)</visible>
|
||||
<bordersize>10</bordersize>
|
||||
<aspectratio>scale</aspectratio>
|
||||
</control>
|
||||
<control type="image">
|
||||
<description>Item Poster</description>
|
||||
<top>300</top>
|
||||
@@ -124,6 +135,7 @@
|
||||
<width>180</width>
|
||||
<height>270</height>
|
||||
<texture>$INFO[ListItem.Property(thumb)]</texture>
|
||||
<visible>Control.HasFocus(102)</visible>
|
||||
<bordersize>10</bordersize>
|
||||
<aspectratio>scale</aspectratio>
|
||||
</control>
|
||||
@@ -138,6 +150,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="AAFFFFFF">$INFO[ListItem.Property(thumb)]</texture>
|
||||
<visible>!Control.HasFocus(102)</visible>
|
||||
<bordersize>10</bordersize>
|
||||
<aspectratio>scale</aspectratio>
|
||||
</control>
|
||||
<control type="image">
|
||||
<description>Item Poster</description>
|
||||
<top>0</top>
|
||||
@@ -145,6 +168,7 @@
|
||||
<width>380</width>
|
||||
<height>570</height>
|
||||
<texture>$INFO[ListItem.Property(thumb)]</texture>
|
||||
<visible>Control.HasFocus(102)</visible>
|
||||
<bordersize>10</bordersize>
|
||||
<aspectratio>scale</aspectratio>
|
||||
</control>
|
||||
@@ -160,7 +184,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 +194,7 @@
|
||||
<texturefocus></texturefocus>
|
||||
<texturenofocus></texturenofocus>
|
||||
</control>
|
||||
|
||||
<control type="group"> <!-- Chennels Group-->
|
||||
<description>Chennels Group</description>
|
||||
<bottom>-100</bottom>
|
||||
|
||||
Reference in New Issue
Block a user