2010-06-27, 21:23
in no language!
Some of us have to communicate with xbmc over a raw tcp port.
I will post a working call later today.
Would it be possible to have user specified formatting if the output? Say, if user created format file foo doesn't exist output in the default manner?
For example, here is what my perl scrip returns for an artist request.
STARTDATA###ENDRECORD
CLEARARTISTS###ENDRECORD
XBMCARTIST###1###(hed) Planet Earth###ENDRECORD
XBMCARTIST###7###.38 Special###ENDRECORD
XBMCARTIST###5###10,000 Maniacs###ENDRECORD
XBMCARTIST###2###3 Doors Down###ENDRECORD
XBMCARTIST###3###3-6 Mafia###ENDRECORD
XBMCARTIST###9###311###ENDRECORD
XBMCARTIST###6###38 Special###ENDRECORD
ENDDATA###ENDRECORD
Some of us have to communicate with xbmc over a raw tcp port.
I will post a working call later today.
Would it be possible to have user specified formatting if the output? Say, if user created format file foo doesn't exist output in the default manner?
For example, here is what my perl scrip returns for an artist request.
STARTDATA###ENDRECORD
CLEARARTISTS###ENDRECORD
XBMCARTIST###1###(hed) Planet Earth###ENDRECORD
XBMCARTIST###7###.38 Special###ENDRECORD
XBMCARTIST###5###10,000 Maniacs###ENDRECORD
XBMCARTIST###2###3 Doors Down###ENDRECORD
XBMCARTIST###3###3-6 Mafia###ENDRECORD
XBMCARTIST###9###311###ENDRECORD
XBMCARTIST###6###38 Special###ENDRECORD
ENDDATA###ENDRECORD
topfs2 Wrote:Simple example in what language? its plain jsonrpc and any language has more or less a wrapper for it.
the poc webinterface is by far the simplest IMO, here is a pastebin of my testing python script if it helps http://pastebin.com/BhmCq6kH
Call with python foo.py Method [Parameter]
For example
python foo.py JSONRPC.Introspect
or
python foo.py AudioLibrary.GetArtists '{ "start": 1, "end": 3 }'