Hopefully this is what you mean: HTTPAPI\ExecBuiltIn and ActivateWindow(10025,"special://profile/playlists/video/Penguins.xsp") for the command (change the playlist name).DeeWay wrote:But I want to be my playlist list opens
jonib
Hopefully this is what you mean: HTTPAPI\ExecBuiltIn and ActivateWindow(10025,"special://profile/playlists/video/Penguins.xsp") for the command (change the playlist name).DeeWay wrote:But I want to be my playlist list opens

19:32:30 XBMC2: JSONRPC: VideoLibrary.Scan
19:32:30 Error in Action: "XBMC2: JSONRPC: VideoLibrary.Scan"
19:32:30 Traceback (most recent call last) (1568):
19:32:30 File "H:\Program Files\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
19:32:30 return self(*args)
19:32:30 File "H:\Program Files\EventGhost\plugins\XBMCRepeat\__init__.py", line 890, in __call__
19:32:30 responce = self.plugin.JSON_RPC.send(method)
19:32:30 File "H:\Program Files\EventGhost\plugins\XBMCRepeat\__init__.py", line 681, in send
19:32:30 return json.loads(responce)
19:32:30 File "json\__init__.pyc", line 307, in loads
19:32:30 File "json\decoder.pyc", line 319, in decode
19:32:30 File "json\decoder.pyc", line 338, in raw_decode
19:32:30 ValueError: No JSON object could be decoded19:33:49 Traceback (most recent call last) (1568):
19:33:49 File "H:\Program Files\EventGhost\plugins\XBMCRepeat\__init__.py", line 914, in OnUpdate
19:33:49 UpdateMethods()
19:33:49 File "H:\Program Files\EventGhost\plugins\XBMCRepeat\__init__.py", line 929, in UpdateMethods
19:33:49 responce = self.plugin.JSON_RPC.send('JSONRPC.Version')
19:33:49 File "H:\Program Files\EventGhost\plugins\XBMCRepeat\__init__.py", line 681, in send
19:33:49 return json.loads(responce)
19:33:49 File "json\__init__.pyc", line 307, in loads
19:33:49 File "json\decoder.pyc", line 319, in decode
19:33:49 File "json\decoder.pyc", line 338, in raw_decode
19:33:49 ValueError: No JSON object could be decodedIt did worksupertusse wrote:Does XBMC2 work with the new v12 alphas (aka nightlies?).

try:
#responce = urllib.urlopen('http://'+self.ip+':'+self.port+'/jsonrpc', json.dumps(self.jsoninit)).read()
request = urllib2.Request('http://'+self.ip+':'+self.port+'/jsonrpc',json.dumps(self.jsoninit))
request.add_header('Content-Type', 'application/json')
responce = urllib2.urlopen(request).read()Nice. Makes my job easier.supertusse wrote:I did a small modification in the send method inside class XBMC_JSON_RPC. The 'try' block now reads:
Aha, yes I read about XBMC 12 being stricter with the header, but hadn't looked into it yet... and it works again.Seems like the trick is to add the content-type header for xbmc v12.

DeeWay wrote:I've created several playlists in XBMC, now I want to put any playlist on a button on the remote control with Event Ghost .. how can this be done?
I think the easiest is to use the HTTPAPI command PlayFile.
Make a macro and add the HTTPAPI action from XBMC2\Experimental. Configure it like the picture below (with a path to your playlist file).
XBMCPlayFile.PNG
jonib
'<div style="position:absolute;right:1em;bottom:1em;font-size:10px;color:red"></div>'Thanks.nonob wrote:First thanks for this great plugin
Looks like you need to use this for music playlists: ActivateWindow(10502,"special://profile/playlists/music/All.xsp"). Change All.xsp to your specific playlist filename.Is there a way to load and play my smart playlists ?


What version of XBMC are you using?nonob wrote:It doesn't work, what am i doing wrong ?


Hmm, Would you mind trying a different network port in XBMC (and in the plugin). As I'm suspecting the "div styles" log result is not from XBMC, maybe there is a port conflict.nonob wrote:I already tried this, it's the first command i tried, but it didn't work... :

Great.nonob wrote:Yeah! It works![]()
I didn't think about my share server software (weezo) which work on port 80.
But there was another little thing: http support wasn't checked in xbmc settings.., but it wasn't the main cause.
So i checked it, i change port to 81, i also change port in xbmc plugin by double clicking on xbmc2 in autostart arborescence (i searched a little time for that), and it works with the "playfile" command.
Thanks a lot.
Sorry for the late response, I have very limited experience with XBMC's music functionality, so don't know. sorry.Hum, i take this opportunity to ask you another thing: i'm suprised to see the "0" remote button start all my music files when i'm on music screen, on the "genre", "artist", "album" or "song" menu.
Anyway, it could be a good thing but with my about 5000 songs loaded in playlit, XBMC become extremly slow..
Do you think my 5000 songs is too much for XBMC ??

Not at the moment. I was hoping for more feedback from the last test version. But I'll have to assume it works perfectlyLivin wrote:any updates to test?
There has been activity, but I haven't been following it too closely at the moment.Do you know if they added any more JSON functionality?

Users browsing this forum: No registered users and 2 guests