Support for XBMC2 plugin (formerly XBMCRepeat)

Questions and comments specific to a particular plugin should go here.
jonib
Plugin Developer
Posts: 1344
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Mon Feb 07, 2011 7:32 pm

hanspettersson wrote:Can you post a printscreen or two please? :D
I'll try.
JSON1.PNG
This shows the result in the log when I have a video playing in XBMC. The result is a Python object and the Items is a list of all media files in the current playlist.
JSON2.PNG
This ShowOSD action shows how to extract the thumbnail path and how to add the "http://localhost:8080/vfs/" part to make it a correct address. This needs to be a bit more complicated if there are more then one item in the playlist.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

hanspettersson
Posts: 42
Joined: Sat Feb 20, 2010 2:42 pm

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by hanspettersson » Mon Feb 07, 2011 9:29 pm

When i try run ex. "XBMCRepeat: GetCurrentlyPlayingFilename" I get:
JSON-RPC connection error
HTTP API connection error
Application is not running!

But when I start eg then it says JSON-RPC connected and HTTP API connected.

Other command works fine, ex menu navigation, play, pause...

I run Win 7 and XMBC 10.0 r35647

jonib
Plugin Developer
Posts: 1344
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Mon Feb 07, 2011 10:33 pm

hanspettersson wrote:When i try run ex. "XBMCRepeat: GetCurrentlyPlayingFilename" I get:
JSON-RPC connection error
HTTP API connection error
Application is not running!
Do you have the right port configured in XBMCRepeat? and do you have "Allow control of XBMC via HTTP" and "Allow programs on this system to control XBMC" checked in XBMCs network settings?
As the command is not able to connect to XBMC through the network.
But when I start eg then it says JSON-RPC connected and HTTP API connected.
The connected part is a bit misleading as the apis are only initialized and not connected when starting EventGhost.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

hanspettersson
Posts: 42
Joined: Sat Feb 20, 2010 2:42 pm

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by hanspettersson » Tue Feb 08, 2011 6:43 am

Yes the port config is right, other xmbc commands works fine, play, pause etc.
And they did't work when the port setting was wrong

jonib
Plugin Developer
Posts: 1344
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Fri Feb 11, 2011 2:09 pm

hanspettersson wrote:Yes the port config is right, other xmbc commands works fine, play, pause etc.
And they did't work when the port setting was wrong
Finally had a chance to look into this.
I can't figure out what is going wrong, so I have attached a new test version that prints out more info with the error you get, please try it and report back.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

hanspettersson
Posts: 42
Joined: Sat Feb 20, 2010 2:42 pm

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by hanspettersson » Sat Feb 12, 2011 9:19 pm

I have now try it on my other machine whit Win XP and then it works fine :)
I will try it on Win 7 later this week.

I get the path to picture whit "http://localhost/vfs/{eg.result["Thumb"]}"
But i cant show the picture whit that in the html...can i safe the result of "http://localhost/vfs/{eg.result["Thumb"]}" in a ex. "eg.globals.musicpic"?

eg.globals.musicpic = http://localhost/vfs/{eg.result["Thumb"]} is not working.

jonib
Plugin Developer
Posts: 1344
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Sat Feb 12, 2011 9:48 pm

hanspettersson wrote:I have now try it on my other machine whit Win XP and then it works fine :)
I will try it on Win 7 later this week.
I haven't done any testing on Win7, I think it should work fine. I'm trying to move my main system to Win7 but end up back in XP as everything just works.
I get the path to picture whit "http://localhost/vfs/{eg.result["Thumb"]}"
But i cant show the picture whit that in the html...can i safe the result of "http://localhost/vfs/{eg.result["Thumb"]}" in a ex. "eg.globals.musicpic"?

eg.globals.musicpic = http://localhost/vfs/{eg.result["Thumb"]} is not working.
If using Python code you can use the eg.result variable directly. the below code should work.

Code: Select all

eg.globals.musicpic = 'http://localhost/vfs/'+eg.result["Thumb"]
jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

hanspettersson
Posts: 42
Joined: Sat Feb 20, 2010 2:42 pm

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by hanspettersson » Sat Feb 12, 2011 10:06 pm

Working perfect :)
Thank you very much :)

jonib
Plugin Developer
Posts: 1344
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Sat Feb 12, 2011 10:18 pm

hanspettersson wrote:Working perfect :)
Nice.
Thank you very much :)
You are welcome.

And if you have ideas of added functionality or any other improvements don't hesitate to let me know. :D

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

mwkurt
Posts: 4
Joined: Sun Jun 27, 2010 3:13 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by mwkurt » Thu Feb 17, 2011 10:42 pm

jonib,

Is it possible to make a command for this plugin that will perform the "export video library" function in XBMC? Along this line there are options to export as a single or separate files, export thumbnails and fanart, and overwrite old files.
Is there anything that can be done with this as far as this function and options?

Also, could you maybe explain a little how I could go about opening a playlist using this plugin and the Playlist item?

Thanks,
Mark

jonib
Plugin Developer
Posts: 1344
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Thu Feb 17, 2011 11:27 pm

mwkurt wrote:Is it possible to make a command for this plugin that will perform the "export video library" function in XBMC? Along this line there are options to export as a single or separate files, export thumbnails and fanart, and overwrite old files.
Is there anything that can be done with this as far as this function and options?
Looks like the only option is to use the HTTPAPI function ExecBuiltIn(function) to run the XBMC builtin function exportlibrary(music|video,false,filepath). I won't have time to look into it more until next week.
Also, could you maybe explain a little how I could go about opening a playlist using this plugin and the Playlist item?
I haven't used the playlist functions so can't help, but checkout the Playlist, HTTPAPI and JSON-RPC documentation. I'll try to look into playlist stuff next week.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

jonib
Plugin Developer
Posts: 1344
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib » Tue Mar 08, 2011 2:45 am

DrMPS wrote:New XBMC plugin in EG r1486, I like the changes (except for having to re-map all my XBMC buttons because it's not compatible w/the old EG version plugin!)
Cool 8) you like it (sorry about the remap).
Anyway...I'm looking for an XBMC command that will show the Movie Info while browsing the guide. (snip) Did I just miss it, or is it not there?
The info command should work the same for movies and tv shows, if you use the context menu->Movie information it shows the information?
Is there a command in the new EG plugin for XBMC that will skip straight to the search library window? If not, I would REALLY appreciate if there were.
I haven't found a direct command for it, but you can use the HTTPAPI action in the XBMC2\Experimental folder, then use the ExecBuiltIn() command with SendClick(8) as parameter (see image below how it should look).
XBMC2Search.PNG
Looks like I need to update the plugin to retrieve the correct command information, fortunately the command still works without the information.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Livin » Tue Mar 08, 2011 4:38 am

Anyone using a Harmony remote with this plugin?

If yes, please let me know what Device you have the remote set to that works without remapping every XBMC command in the plugin?

thx
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Pako » Sun Mar 27, 2011 7:17 am

I found that this plugin makes it impossible to run the Translator (start EG with -translate switch).
I also concluded that the problems causing the identifiers on the following lines: 173, 215, 239, 261, 272, 282, 294, 308, 322, 390, 391, 410, 411, 417, 418, 419.
For example, line number 390 should be corrected roughly as follows:

Code: Select all

    ("RemoteSkipPlus", "Skip +", "", "skipplus"),
Attached is corrected (in the same way) whole plugin.
I do not use XBMC, and I therefore can not test whether this modified plugin works correctly.

@jonib:
Please make the necessary fixes.
It is impossible to remain plugin with the current version (which excludes the use of Translator) in SVN repository.

Pako
Attachments
__init__.py
(51.02 KiB) Downloaded 293 times

jonib
Plugin Developer
Posts: 1344
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib » Sun Mar 27, 2011 8:52 pm

Pako wrote:Please make the necessary fixes.
It is impossible to remain plugin with the current version (which excludes the use of Translator) in SVN repository.
I'll do the fixes, thanks for providing the fixed version.

Is there somewhere I can read about what is needed for the translation to work?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

Post Reply