2016-08-27, 16:59
I am trying to call the epg guide interface in my addon, provided by iptv simple client. Here's what I have now:
then:
If I press back it goes to the main menu instead of the place where I called it. I was thinking I could replace the "tv_guide_url" with something like plugin://pvr.iptvsimple, but in the Kodi.log I get:
ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://pvr.iptvsimple/
ERROR: Unable to run plugin PVR IPTV Simple Client
I tried to find some info in the upstream/downstream sources, but that didn't help. Perhaps someone could enlighten me.
P.S. I tried to find info here as well (http://kodi.wiki/view/Opening_Windows_and_Dialogs#PVR), and in fact PVR addition is written by me, so provided info from this thread will find its place there.
Code:
# TV guide:
tv_guide_url = action_url({'action': 'guide'})
Guide_item = xbmcgui.ListItem(label=localisedstr(30014))
Guide_item.setArt({'icon': TVGuideImage, 'fanart': addonfanart})
xbmcplugin.addDirectoryItem(handle=addon_handle, url=tv_guide_url, listitem=Guide_item, isFolder=True)
xbmcplugin.endOfDirectory(int(sys.argv[1]))
then:
Code:
elif action[0] == 'guide':
xbmc.executebuiltin("ActivateWindow(TVGuide)")
If I press back it goes to the main menu instead of the place where I called it. I was thinking I could replace the "tv_guide_url" with something like plugin://pvr.iptvsimple, but in the Kodi.log I get:
ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://pvr.iptvsimple/
ERROR: Unable to run plugin PVR IPTV Simple Client
I tried to find some info in the upstream/downstream sources, but that didn't help. Perhaps someone could enlighten me.
P.S. I tried to find info here as well (http://kodi.wiki/view/Opening_Windows_and_Dialogs#PVR), and in fact PVR addition is written by me, so provided info from this thread will find its place there.