2020-05-17, 17:07
Goal: using json-rpc open a folder inside of the addon.
Problem: ParentPath (..) is the same as current folder
json-rpc example:
https://paste.kodi.tv/pocehatabi.kodi
Main point is:
The same as parameters I'm calling the addon with. So when I navigate to the parent folder - same folder opens up.Is there any way to set ParentPath to something else?
Problem: ParentPath (..) is the same as current folder
json-rpc example:
Handler inside of the addon (https://github.com/Virusmater/plugin.aud...ee/develop):json:{
"jsonrpc": "2.0",
"method": "Addons.ExecuteAddon",
"params": {
"wait": false,
"addonid": "plugin.audio.kxmxpxtx.bandcamp",
"params": {
"mode": "url",
"url": "https%3A%2F%2Fshlemrock.bandcamp.com%2Ftrack%2F--7"
}
},
"id": 1
}
Logs:python:
...
elif mode[0] == 'url':
url = args.get("url", None)[0]
build_song_list(*bandcamp.get_album_by_url(url))
...
def build_song_list(band, album, tracks):
track_list = list_items.get_track_items(band=band, album=album, tracks=tracks)
xbmcplugin.addDirectoryItems(addon_handle, track_list, len(track_list))
xbmcplugin.setContent(addon_handle, 'songs')
xbmcplugin.endOfDirectory(addon_handle)
...
https://paste.kodi.tv/pocehatabi.kodi
Main point is:
Code:
2020-05-17 16:54:38.870 T:140581577232320 DEBUG: ParentPath = [plugin://plugin.audio.kxmxpxtx.bandcamp/?mode=url&url=https%3A%2F%2Fshlemrock.bandcamp.com%2Ftrack%2F--7]