Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Support for XBMC2 plugin (formerly XBMCRepeat)

Questions and comments specific to a particular plugin should go here.
MANswers
Posts: 17
Joined: Sat Apr 13, 2013 4:13 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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"}]
Attachments
9-3-2013 7-26-44 PM.jpg
MANswers
Posts: 17
Joined: Sat Apr 13, 2013 4:13 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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.
Attachments
9-3-2013 7-30-08 PM.jpg
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
MANswers
Posts: 17
Joined: Sat Apr 13, 2013 4:13 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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.
Attachments
log.txt
(775.87 KiB) Downloaded 195 times
MANswers
Posts: 17
Joined: Sat Apr 13, 2013 4:13 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
MANswers
Posts: 17
Joined: Sat Apr 13, 2013 4:13 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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."
}
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
MANswers
Posts: 17
Joined: Sat Apr 13, 2013 4:13 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by MANswers »

No Problems sure. Tomorrow be fine.
MANswers
Posts: 17
Joined: Sat Apr 13, 2013 4:13 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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?
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
MANswers
Posts: 17
Joined: Sat Apr 13, 2013 4:13 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
Wigalo
Posts: 5
Joined: Sat Sep 07, 2013 6:31 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
Wigalo
Posts: 5
Joined: Sat Sep 07, 2013 6:31 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Wigalo »

Thanks Jonib.
Post Reply