Ricerca Globale aggiunto Anno e piccoli fix grafici

This commit is contained in:
Alhaziel01
2020-12-01 12:02:48 +01:00
parent 660662669b
commit 29b1cc1dff
2 changed files with 23 additions and 3 deletions
+7
View File
@@ -104,6 +104,7 @@ class SearchWindow(xbmcgui.WindowXML):
results = tmdb_info.results results = tmdb_info.results
for result in results: for result in results:
logger.info(result)
result = tmdb_info.get_infoLabels(result, origen=result) result = tmdb_info.get_infoLabels(result, origen=result)
movie = result.get('title','') movie = result.get('title','')
tvshow = result.get('name','') tvshow = result.get('name','')
@@ -116,6 +117,11 @@ class SearchWindow(xbmcgui.WindowXML):
it.setProperty('fanart', result.get('fanart','')) it.setProperty('fanart', result.get('fanart',''))
it.setProperty('plot', result.get('overview', '')) it.setProperty('plot', result.get('overview', ''))
it.setProperty('search','search') 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) items.append(it)
if items: if items:
@@ -276,6 +282,7 @@ 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.setProperty('year', '[' + str(item.year if item.year else item.infoLabels.get('year','')) + ']')
it.setProperty('thumb', thumb) it.setProperty('thumb', thumb)
it.setProperty('fanart', item.fanart) it.setProperty('fanart', item.fanart)
it.setProperty('plot', item.plot) it.setProperty('plot', item.plot)
+16 -3
View File
@@ -32,7 +32,6 @@
<effect type="fade" delay="160" start="100" end="0" time="300" /> <effect type="fade" delay="160" start="100" end="0" time="300" />
</animation> </animation>
<control type="image"> <control type="image">
<description>Fanart</description> <description>Fanart</description>
<width>100%</width> <width>100%</width>
@@ -74,11 +73,25 @@
<!-- <font>font30_title</font> --> <!-- <font>font30_title</font> -->
<textcolor>FFFFFFFF</textcolor> <textcolor>FFFFFFFF</textcolor>
<shadowcolor>00000000</shadowcolor> <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> <align>left</align>
<aligny>center</aligny> <aligny>center</aligny>
</control> </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"> <control type="textbox">
<description>Item Plot</description> <description>Item Plot</description>
<left>400</left> <left>400</left>
@@ -92,7 +105,7 @@
<align>left</align> <align>left</align>
</control> </control>
<control type="fixedlist" id="102"> <control type="wraplist" id="102">
<description>Search Results list</description> <description>Search Results list</description>
<bottom>70</bottom> <bottom>70</bottom>
<left>0</left> <left>0</left>