Kodi Community Forum
Solved Do pvr addons have urls? Similar to plugin:// - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: Solved Do pvr addons have urls? Similar to plugin:// (/showthread.php?tid=288496)



Do pvr addons have urls? Similar to plugin:// - twilight0 - 2016-08-27

I am trying to call the epg guide interface in my addon, provided by iptv simple client. Here's what I have now:

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.


RE: Do pvr addons have urls? Similar to plugin:// - twilight0 - 2016-08-29

Probably they are not callable through the plugin:// method. So the only solution is to remap the key or shortcut to go from "back" to "previous menu"