I have an interesting problem that hopefully someone can shed some light on.
I am writing a plugin in which I am attempting to utilize a couple of ‘xbmcCmds’. The plugin runs smoothly until it gets to one of these, at which point it seems to break.
I tried a simple command for testing purposes:
hxxp://ip.address:3000/xbmcCmds/xbmcHttp?command=getcurrentplaylist
This should return a single integer (I think 0 if no playlist is currently set).
If I enter this url into a web browser, an integer is returned, so I know the command works.
Prior to creating the plugin, I mapped out my workflow in a standalone python script. When run from the terminal, it returns an integer, so I know the python execution of the url is working.
However, in my Plex plugin, it either freezes Plex, immediately crashes Plex, or simply returns a 404 in the console. When it crashes the console merely tells me that it had timed out.
I have tried executing this several ways:
Through an HTTP:Request
Through an os.system(‘curl “url”’)
I even tried executing an external Python script which was to os.sytem the url. All of these cases failed.
Am I missing a step here? I’m familiar with Python, but new to the Plex plugin game, so I could be missing something obvious.
A bit more research revealed that the old xbmcCmds aren’t fully supported in Plex 9. So, I’ll modify my question a bit. Is there any 32400 equivalent of the following commands?
/xbmcCmds/xbmcHttp?command=AddToPlaylist(item)’
/xbmcCmds/xbmcHttp?command=setcurrentplaylist(integer)
/xbmcCmds/xbmcHttp?command=playlistnext
Hey PartyMummy!
These are the commands currently supported by the Media Server.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.