Ricerca Globale aggiunto Anno e piccoli fix grafici
This commit is contained in:
@@ -104,6 +104,7 @@ class SearchWindow(xbmcgui.WindowXML):
|
||||
results = tmdb_info.results
|
||||
|
||||
for result in results:
|
||||
logger.info(result)
|
||||
result = tmdb_info.get_infoLabels(result, origen=result)
|
||||
movie = result.get('title','')
|
||||
tvshow = result.get('name','')
|
||||
@@ -116,6 +117,11 @@ class SearchWindow(xbmcgui.WindowXML):
|
||||
it.setProperty('fanart', result.get('fanart',''))
|
||||
it.setProperty('plot', result.get('overview', ''))
|
||||
it.setProperty('search','search')
|
||||
year = result.get('release_date','')
|
||||
if year: it.setProperty('year','[' + year.split('/')[-1] + ']')
|
||||
else:
|
||||
year = result.get('first_air_date','')
|
||||
if year: it.setProperty('year','[' + year.split('-')[0] + ']')
|
||||
items.append(it)
|
||||
|
||||
if items:
|
||||
@@ -276,6 +282,7 @@ class SearchWindow(xbmcgui.WindowXML):
|
||||
thumb = item.thumbnail if item.thumbnail else 'Infoplus/' + item.contentType.replace('show','') + 'png'
|
||||
logger.info('THUMB', thumb)
|
||||
it = xbmcgui.ListItem(item.title)
|
||||
it.setProperty('year', '[' + str(item.year if item.year else item.infoLabels.get('year','')) + ']')
|
||||
it.setProperty('thumb', thumb)
|
||||
it.setProperty('fanart', item.fanart)
|
||||
it.setProperty('plot', item.plot)
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
<effect type="fade" delay="160" start="100" end="0" time="300" />
|
||||
</animation>
|
||||
|
||||
|
||||
<control type="image">
|
||||
<description>Fanart</description>
|
||||
<width>100%</width>
|
||||
@@ -74,11 +73,25 @@
|
||||
<!-- <font>font30_title</font> -->
|
||||
<textcolor>FFFFFFFF</textcolor>
|
||||
<shadowcolor>00000000</shadowcolor>
|
||||
<label>$INFO[Container(102).ListItem.Label] [B][COLOR FFAAAAAA]($INFO[Container(102).CurrentItem]/$INFO[Container(102).NumItems])[/COLOR][/B]</label>
|
||||
<label>$INFO[Container(102).ListItem.Label] [B][COLOR FFAAAAAA]$INFO[Container(102).ListItem.Property(year)][/COLOR][/B]</label>
|
||||
<align>left</align>
|
||||
<aligny>center</aligny>
|
||||
</control>
|
||||
|
||||
<control type="textbox">
|
||||
<description>Item Title</description>
|
||||
<right>40</right>
|
||||
<top>90</top>
|
||||
<width>200</width>
|
||||
<height>30</height>
|
||||
<!-- <font>font30_title</font> -->
|
||||
<textcolor>FFFFFFFF</textcolor>
|
||||
<shadowcolor>00000000</shadowcolor>
|
||||
<label>[B][COLOR FFAAAAAA]$INFO[Container(102).CurrentItem]/$INFO[Container(102).NumItems][/COLOR][/B]</label>
|
||||
<align>right</align>
|
||||
<aligny>center</aligny>
|
||||
</control>
|
||||
|
||||
<control type="textbox">
|
||||
<description>Item Plot</description>
|
||||
<left>400</left>
|
||||
@@ -92,7 +105,7 @@
|
||||
<align>left</align>
|
||||
</control>
|
||||
|
||||
<control type="fixedlist" id="102">
|
||||
<control type="wraplist" id="102">
|
||||
<description>Search Results list</description>
|
||||
<bottom>70</bottom>
|
||||
<left>0</left>
|
||||
|
||||
Reference in New Issue
Block a user