2016-04-15, 09:29
I set some ListItems in a container in my python script as follow
the container is calles from the skin as content
``refreshWidget(__LS__(30116))`` is called every 5min. from the updater part of the script but I have to update or refresh the the ListItems too.
so tried:
but it did not work for me...
Code:
elif methode == 'get_item_serienplaner':
sp_items = refreshWidget(__LS__(30116))
url = '-'
for sitem in sp_items:
li = xbmcgui.ListItem(label2=sitem['TVShow'], label=sitem['Title'], thumbnailImage=sitem['Thumb'])
li.setProperty("channel", sitem['Channel'])
li.setArt({'poster': sitem['Poster']})
li.setProperty("plot", sitem['Description'])
li.setProperty("staffel", sitem['Staffel'])
li.setProperty("episode", sitem['Episode'])
li.setProperty("starttime", sitem['Starttime'])
li.setProperty("rating", sitem['Rating'])
li.setProperty("senderlogo", sitem['Logo'])
li.setProperty("genre", sitem['Genre'])
li.setProperty("date", sitem['Datum'])
li.setProperty("runtime", sitem['RunningTime'])
li.setProperty("studio", sitem['Studio'])
li.setProperty("year", sitem['Jahr'])
li.setProperty("altersfreigabe", sitem['Altersfreigabe'])
li.setProperty("status", sitem['Status'])
li.setProperty("label", sitem['Title'])
li.setProperty("label2", sitem['TVShow'])
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
xbmcplugin.endOfDirectory(addon_handle)
the container is calles from the skin as content
Code:
<content>plugin://plugin.program.serienplaner/?methode=get_item_serienplaner</content>
``refreshWidget(__LS__(30116))`` is called every 5min. from the updater part of the script but I have to update or refresh the the ListItems too.
so tried:
Code:
xbmc.executebuiltin("Container.Update(plugin://plugin.program.serienplaner/?methode=get_item_serienplaner)")
but it did not work for me...