2022-04-24, 15:54
Hi i have new problem
i write me a little funktion to get epg data fo my stalker addon
wich i added as "plot"
i build the list in this way:
but in this way it download epgdata for every item in the list first bevor it shows me the list with the channels.
if i select a genre with more than 100 channels for example it takes very long time until it generates the list and show
is there a way to do the epg download (run the function) only if one item is selectet.
in this way i got one extra bonus....epg is always actual
like it works on the stb...
i am not a coder
sorry for my bad english
Thanks for help
i write me a little funktion to get epg data fo my stalker addon
wich i added as "plot"
i build the list in this way:
python:url = build_url({
'mode': 'check',
'cmd': cmd,
'epgid': epgid,
'tmp' : tmp,
'title' : name,
'genre_name' : genre_name,
'logo_url' : logo_url,
'portal' : json.dumps(portal)
})
li = xbmcgui.ListItem(name)
li.setArt({'icon':logo})
li.setInfo(type='Video', infoLabels={
'title': name,
'count' : number,
'plot' : load_channels.getShortEPG(portal['mac'], portal['url'], portal['serial'], addondir, epgid),
})
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
but in this way it download epgdata for every item in the list first bevor it shows me the list with the channels.
if i select a genre with more than 100 channels for example it takes very long time until it generates the list and show
is there a way to do the epg download (run the function) only if one item is selectet.
in this way i got one extra bonus....epg is always actual
like it works on the stb...
i am not a coder
sorry for my bad english
Thanks for help