(2013-02-03 13:03)qpop Wrote: http://wiki.xbmc.org/index.php?title=JSON_RPC has some solid information.
If only there was a "if your script used to say this then make it say this..."!
Indeed. It's a lot more complicated than one might think. I'd basically have to rewrite this from scratch to make it work properly and I don't currently have the time or inclination to do so. Sorry. If someone else feels like taking it on, feel free to use my code as you see fit, though, as I said, you're better off starting from scratch.
The hurdles I've identified so far are:
2. Whereas before all the information was available from XBMC on one neatly bulleted web page, now you'd have to make at least 3 separate queries if you want it not to be error-prone.
I think you would need to:
1. Get the active player ID
2. Get the currently playing media in that player
3. Determine if it's audio, a TV show or a movie
4. Get the media info
5. Parse and output
Probably the simplest solution, but not terribly elegant, is to use an external program written in some other language that will query XBMC and write details about the currently playing media to a file for mIRC to read and parse. I'll ponder this avenue but I don't know Python (the logical choice) at all.
Good luck! And sorry again...