2018-01-18, 09:46
I've played a little bit arround with the custom widget cause I've my own little Plugin which shows me the next epidode on PVR for series I've in library. It's like nextaired but for German Broadcast based on the TV-Guide for next 15 days...
so I insert in custom Wigdet:
most works out of the box... but I've some problems with the "Property ListItems]
so
is available
but
is not...
any idea?
Sveni_Lee
so I insert in custom Wigdet:
Code:
plugin://plugin.program.serienplaner/?methode=get_item_serienplaner&reload=$INFO[Window(Home).Property(SerienPlaner.Countdown)]
most works out of the box... but I've some problems with the "Property ListItems]
python:
elif methode == 'get_item_serienplaner':
sp_items = refreshWidget()
writeLog('spitems %s' % (sp_items), level=xbmc.LOGDEBUG)
writeLog('SerienPlaner sysargv: '+str(sys.argv), level=xbmc.LOGDEBUG)
url = '-'
for sitem in sp_items:
li = xbmcgui.ListItem(label2=sitem['Channel'], label=sitem['Title'], thumbnailImage=sitem['Thumb'])
li.setProperty("channel", sitem['Channel'])
li.setArt({'poster': sitem['Poster'], 'fanart': sitem['Fanart'], 'clearlogo' : sitem['Clearlogo']})
li.setInfo('video', {'mediatype' : "episode", 'Season' : sitem['Staffel'], 'Episode' : sitem['Episode'], 'Title' : sitem['Title'],
'Genre' : sitem['Genre'], 'mpaa' : sitem['Altersfreigabe'], 'year' : sitem['Jahr'], 'plot' : sitem['Description'],
'rating' : sitem['Rating'], 'studio' : sitem['Studio'], 'TvShowTitle' : sitem['TVShow'], 'duration' : int(sitem['RunningTime'])*60,
'StartTime' : sitem['Starttime']})
li.setProperty("senderlogo", sitem['Logo'])
li.setProperty("Starttime", sitem['Starttime'])
li.setProperty("Datum", sitem['Datum'])
li.setProperty("Duration", sitem['RunningTime'])
li.setProperty("PVRID", sitem['PVRID'])
li.setProperty("status", sitem['Status'])
li.setProperty('DateTime', '%s %s' % (sitem['Datum'], sitem['Starttime']))
li.setProperty('recordtime', sitem['_Starttime'])
li.setProperty("recordname", '%s.S%sE%s.%s' % (sitem['TVShow'], sitem['Staffel'], sitem['Episode'], sitem['Title']))
li.setProperty("DBType", '%s' % ("serienplaner"))
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
xbmcplugin.endOfDirectory(addon_handle)
xbmc.executebuiltin("Container.Refresh")
so
Code:
$INFO[Window(Home).Property(ListItem.Label2)]
is available
but
Code:
$INFO[Window(Home).Property(ListItem.Property(DateTime))]
any idea?
Sveni_Lee