Page 56 of 94

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 04, 2013 12:29 am
by MANswers
Thanks for your reply. Finally someone is looking at my threads.. i thought i am an invisible banned member. :D
just kidding.
Yes i am using the correct test file per my version. Currently i am on this window. (please see attachment)

Using an example of one of the Playlist.. does the below syntax look good.. with all the double quotes, braces and cornered brackets and double slashes?
[{"file":"C:\\Users\\Admin\\AppData\\Roaming\\XBMC\\userdata\\playlists\\video\\Hollywood.xsp"}]

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 04, 2013 12:31 am
by MANswers
Looks like my syntax is wrong...
I already got this error when i tried with the above commands... that i posted in this thread earlier.

Error:
{
"code": -32602,
"message": "Invalid params."
}

Almost on the edge, i guess i am very close.. please help.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 04, 2013 12:56 am
by jonib
MANswers wrote:Looks like my syntax is wrong...
I already got this error when i tried with the above commands... that i posted in this thread earlier.
So I used this:

Code: Select all

[{"file":"C:\\Users\\Admin\\AppData\\Roaming\\XBMC\\userdata\\playlists\\video\\Hollywood.xsp"}]
only changing the username, and I placed a file in that path (I keep my XBMC files on my D: drive). And it works.
EGXBMC00.png
I did get the same error you did before I changed the username, as I forgot to change it.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 04, 2013 1:06 am
by MANswers
Howly cow, i hit a barrage of error messages when i hit test button.

Attached log file.. cannot paste here.. dont want to spam this thread with error msgs.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 04, 2013 1:13 am
by MANswers
Ok, just an update here, It does take me to the playlist, but it also starts playing some random movie. I tried different playlists, and each time it took me to the corresponding playlist i added.. but instead of listing the movies, it starts playing something from that playlist.

I want the command to take me to the playlist page.. displaying all the movies thumnails

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 04, 2013 1:29 am
by MANswers
Do you think the GetPlayList under Playlist is the right action for the playlist to be displayed, instead of playing the movies?

When i try that.. i get this.

XBMC2: JSONRPC: Playlist.GetPlaylists
Error:
{
"code": -32602,
"data": {
"message": "Too many parameters",
"method": "Playlist.GetPlaylists"
},
"message": "Invalid params."
}

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 04, 2013 1:44 am
by jonib
MANswers wrote:Ok, just an update here, It does take me to the playlist, but it also starts playing some random movie. I tried different playlists, and each time it took me to the corresponding playlist i added.. but instead of listing the movies, it starts playing something from that playlist.

I want the command to take me to the playlist page.. displaying all the movies thumnails
I figured just before your post that you probably wanted to show the list and not play them all. :oops:
MANswers wrote:Do you think the GetPlayList under Playlist is the right action for the playlist to be displayed, instead of playing the movies?
No I don't think so, I'm not sure but GUI.ActivateWindow seems like the best bet. but it's too late for me, so I have to give up for today(tomorrow?).

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 04, 2013 2:06 am
by MANswers
No Problems sure. Tomorrow be fine.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 04, 2013 3:55 pm
by MANswers
I got someone to reply at XBMC forum, and they mentioned something like this...
{"jsonrpc":"2.0","method": "GUI.ActivateWindow", "params": { "window": "video", "parameters": [ "special://profile/playlists/video/FrenchMovies.xsp" ] }, "id": 1 }
I think this will need modification to be added to our plugin.. right?

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 04, 2013 4:27 pm
by jonib
MANswers wrote:I got someone to reply at XBMC forum, and they mentioned something like this...
Good call.
I think this will need modification to be added to our plugin.. right?
Just copy the "params" part and put it in:

Code: Select all

{ "window": "video", "parameters": [ "special://profile/playlists/video/FrenchMovies.xsp" ] }
EGXBMC01.png
I just tried and works great. (of course I changed to a playlist I have)

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 04, 2013 8:56 pm
by MANswers
jonib, you are a genius bro!! This worked perfectly fine.
I can open all my 7 movie genre playlists through irule (remote application on ipad).

Quick question.. early morning when i googled to find the correct commands to inculcate with the GUI action.. i found this link..
https://github.com/xbmc/xbmc/pull/1465

Why hasnt the author mentioned to add the link location as you mentioned.. special://profile/playlists/video
I am trying to understand these command languages per the author.
I might have a few other questions as i configure more activities on the irule with various macros.. but let me try these on my own first.

You have a pm.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Thu Sep 05, 2013 11:07 pm
by jonib
MANswers wrote:jonib, you are a genius bro!! This worked perfectly fine.
Great.
Why hasnt the author mentioned to add the link location as you mentioned.. special://profile/playlists/video
I guess it just accesses some function internal to XBMC that supports it, but it makes it hard to figure out the syntax for some of the JSON-RPC commands.
I might have a few other questions as i configure more activities on the irule with various macros.. but let me try these on my own first.
Sure.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Sep 07, 2013 7:06 pm
by Wigalo
Hey guys, i'm glad that i found this plug in. i've searched, so if i've missed the answer, please forgive me. i'm setting up the xbmc2 plug in and most of the actions work with the exception of the most important one for me...xbmc:start.

I'm sure that there must be an easy fix, any ideas? when i manually test the action, it shows up in the log, but nothing happens.

plug in version 0.6.9
eg 0.4.1.r1638
xbmc frodo

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Sep 07, 2013 8:24 pm
by jonib
Wigalo wrote:i'm setting up the xbmc2 plug in and most of the actions work with the exception of the most important one for me...xbmc:start.
Do you mean "Buttons\Remote\Start"? If you are expecting it to start XBMC it wont do that (Don't remember what XBMC has it mapped to), to start XBMC from EventGhost you need to use the generic "Start Application" action.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Sep 11, 2013 2:24 pm
by Wigalo
Thanks Jonib.