Ricerca Globale Icone canali in risultati verificati

This commit is contained in:
Alhaziel01
2020-12-10 19:08:14 +01:00
parent 26a8ff7a8c
commit 16f6aaa459
2 changed files with 101 additions and 42 deletions
+3 -3
View File
@@ -298,7 +298,7 @@ class SearchWindow(xbmcgui.WindowXML):
for elem in results: for elem in results:
if elem.infoLabels['tmdb_id'] == searched_id: if elem.infoLabels['tmdb_id'] == searched_id:
elem.from_channel = channel elem.from_channel = channel
elem.verified ='ok.png' elem.verified = 1
valid.append(elem) valid.append(elem)
else: else:
other.append(elem) other.append(elem)
@@ -315,9 +315,9 @@ class SearchWindow(xbmcgui.WindowXML):
thumb = item.thumbnail if item.thumbnail else 'Infoplus/' + item.contentType.replace('show', '') + '.png' thumb = item.thumbnail if item.thumbnail else 'Infoplus/' + item.contentType.replace('show', '') + '.png'
logger.info('THUMB', thumb) logger.info('THUMB', thumb)
it = xbmcgui.ListItem(item.title) it = xbmcgui.ListItem(item.title)
it.setProperties({'thumb': thumb, 'fanart': item.fanart, 'verified': item.verified, 'plot': item.plot, it.setProperties({'thumb': thumb, 'fanart': item.fanart, 'plot': item.plot,
'year': '[' + str(item.year if item.year else item.infoLabels.get('year', '')) + ']', 'year': '[' + str(item.year if item.year else item.infoLabels.get('year', '')) + ']',
'item': url, 'channel':channelParams['title']}) 'item': url, 'verified': item.verified, 'channel':channelParams['title'], 'channelthumb': channelParams['thumbnail'] if item.verified else ''})
if item.server: if item.server:
color = scrapertools.find_single_match(item.alive, r'(FF[^\]]+)') color = scrapertools.find_single_match(item.alive, r'(FF[^\]]+)')
it.setProperties({'channel': channeltools.get_channel_parameters(item.channel).get('title', ''), it.setProperties({'channel': channeltools.get_channel_parameters(item.channel).get('title', ''),
+98 -39
View File
@@ -117,51 +117,110 @@
<orientation>horizontal</orientation> <orientation>horizontal</orientation>
<scrolltime tween="cubic" easing="out">300</scrolltime> <scrolltime tween="cubic" easing="out">300</scrolltime>
<itemlayout height="570" width="180"> <itemlayout height="570" width="180">
<control type="image"> <control type="group">
<description>Item Poster</description>
<top>300</top> <top>300</top>
<left>0</left> <visible>String.IsEmpty(ListItem.Property(channelthumb))</visible>
<width>180</width> <control type="image">
<height>270</height> <description>Item Poster</description>
<texture colordiffuse="FF999999">$INFO[ListItem.Property(thumb)]</texture> <top>0</top>
<visible>!Control.HasFocus(102)</visible> <left>0</left>
<bordersize>10</bordersize> <width>180</width>
<aspectratio>scale</aspectratio> <height>270</height>
<texture colordiffuse="FF999999">$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>
<left>0</left>
<width>180</width>
<height>270</height>
<texture>$INFO[ListItem.Property(thumb)]</texture>
<visible>Control.HasFocus(102)</visible>
<bordersize>10</bordersize>
<aspectratio>scale</aspectratio>
</control>
</control> </control>
<control type="image"> <control type="group">
<description>Item Poster</description> <top>390</top>
<top>300</top> <visible>!String.IsEmpty(ListItem.Property(channelthumb))</visible>
<left>0</left> <control type="image">
<width>180</width> <description>Item Poster</description>
<height>270</height> <top>0</top>
<texture>$INFO[ListItem.Property(thumb)]</texture> <left>0</left>
<visible>Control.HasFocus(102)</visible> <width>180</width>
<bordersize>10</bordersize> <height>180</height>
<aspectratio>scale</aspectratio> <texture colordiffuse="FF999999">$INFO[ListItem.Property(channelthumb)]</texture>
<visible>!Control.HasFocus(102)</visible>
<bordersize>10</bordersize>
<aspectratio>scale</aspectratio>
</control>
<control type="image">
<description>Item Poster</description>
<top>0</top>
<left>0</left>
<width>180</width>
<height>180</height>
<texture>$INFO[ListItem.Property(channelthumb)]</texture>
<visible>Control.HasFocus(102)</visible>
<bordersize>10</bordersize>
<aspectratio>scale</aspectratio>
</control>
</control> </control>
</itemlayout> </itemlayout>
<focusedlayout height="570" width="380"> <focusedlayout height="570" width="380">
<control type="image"> <control type="group">
<description>Item Poster</description> <control type="image">
<top>0</top> <description>Item Poster</description>
<left>0</left> <top>0</top>
<width>380</width> <left>0</left>
<height>570</height> <width>380</width>
<texture colordiffuse="FF999999">$INFO[ListItem.Property(thumb)]</texture> <height>570</height>
<visible>!Control.HasFocus(102)</visible> <texture colordiffuse="FF999999">$INFO[ListItem.Property(thumb)]</texture>
<bordersize>10</bordersize> <visible>!Control.HasFocus(102)</visible>
<aspectratio>scale</aspectratio> <bordersize>10</bordersize>
<aspectratio>scale</aspectratio>
</control>
<control type="image">
<description>Item Poster</description>
<top>0</top>
<left>0</left>
<width>380</width>
<height>570</height>
<texture>$INFO[ListItem.Property(thumb)]</texture>
<visible>Control.HasFocus(102)</visible>
<bordersize>10</bordersize>
<aspectratio>scale</aspectratio>
</control>
</control> </control>
<control type="image"> <control type="group">
<description>Item Poster</description> <top>420</top>
<top>0</top> <left>230</left>
<left>0</left> <visible>!String.IsEmpty(ListItem.Property(channelthumb))</visible>
<width>380</width> <control type="image">
<height>570</height> <description>Item Poster</description>
<texture>$INFO[ListItem.Property(thumb)]</texture> <top>0</top>
<visible>Control.HasFocus(102)</visible> <left>0</left>
<bordersize>10</bordersize> <width>150</width>
<aspectratio>scale</aspectratio> <height>150</height>
<texture colordiffuse="FF999999">$INFO[ListItem.Property(channelthumb)]</texture>
<visible>!Control.HasFocus(102)</visible>
<bordersize>10</bordersize>
<aspectratio>scale</aspectratio>
</control>
<control type="image">
<description>Item Poster</description>
<top>0</top>
<left>0</left>
<width>150</width>
<height>150</height>
<texture>$INFO[ListItem.Property(channelthumb)]</texture>
<visible>Control.HasFocus(102)</visible>
<bordersize>10</bordersize>
<aspectratio>scale</aspectratio>
</control>
</control> </control>
</focusedlayout> </focusedlayout>
</control> </control>