Solved JSON-RPC Open track listing of an album.. Possible?
#1
Hi,

Can anyone suggest a way to use JSON-RPC to open the track listing of a given album in the Kodi GUI using its album ID (or any other identifier)? Failing that, can such a thing be achieved using the standard python libraries?

Cheers!
theDeadMan.
Bitcoin donations: 1Hvo9rWzhAVbuPrshgaGZaD7qcLFTCPuiv
[Skin] Pellucid
[Skin] Maximinimalism
Reply
#2
You can use GUI.ActivateWindow and then provide the proper window (probably MyMusic) and the right path. It should be something along the lines of musicdb://albums/<albumid>.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#3
Excellent. Thanks Montellese!

For future ref:

Code:
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "GUI.ActivateWindow", "params": {"window": "music", "parameters": ["albums/%d"]}}' % int(self.ALBUM) )
Bitcoin donations: 1Hvo9rWzhAVbuPrshgaGZaD7qcLFTCPuiv
[Skin] Pellucid
[Skin] Maximinimalism
Reply

Logout Mark Read Team Forum Stats Members Help
JSON-RPC Open track listing of an album.. Possible?0