Posts: 999
Joined: Jan 2004
Reputation:
1
Since the addon-merge how does plugins work? I see scrapers and viz added. And now also some scripts (xbmc.subtitles, recentlyadded and so on)
But I haven't seen anyone trying to get plugins in. How does the addon.xml look for a plugin? Does anyone know?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Plugins aren't in yet - I hope to get them in today.
They'll use the xbmc.python.plugin extension point and otherwise be identical to scripts, using the <supportedcontent> tag in xbmc.addon.metadata in the same way as scrapers.
Cheers,
Jonathan
Posts: 999
Joined: Jan 2004
Reputation:
1
Thank you for your answer! Looking forward to testing it!
Posts: 999
Joined: Jan 2004
Reputation:
1
Does this look like a coorect addon.xml for a plugin? In this case the AMT Lite?
[HTML]<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.amtlite"
name="Apple Movie Trailers Lite"
version="1.0"
provider-name="Nuka1195">
<requires>
<import addon="xbmc.python" version="1.0"/>
</requires>
<extension point="xbmc.python.plugin"
library="default.py" />
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<minversion>28764</minversion>
<summary lang="en">Apple Movie Trailers Lite</summary>
<description lang="en">View movie trailers from quicktime.com</description>
<supportedcontent>
<content>movies</content>
</supportedcontent>
</extension>
</addon>[/HTML]
And is it correct to call it like this:
[HTML]<onclick>XBMC.ActivateWindow(MyVideoLibrary, special://addons/plugin.amtlite/default.py,return)</onclick>[/HTML]
Posts: 26,215
Joined: Oct 2003
Reputation:
187
That looks OK. You can call it directly using plugin://plugin.amtlite I should think, though ofcourse you shouldn't be assuming that the user has it installed.
Note that it'll show up in the root of your video library by default.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
You probably want to pass the plugin ID into getSettings I think.
And it shows up in the root of you video library. No idea about files view - haven't tried it.
Cheers,
Jonathan
Posts: 26,215
Joined: Oct 2003
Reputation:
187
The docs may be out of date - check the code in SVN.
Posts: 568
Joined: Jan 2009
Reputation:
30
I'm wondering the same thing. I grabbed the Astral Media plugin from svn, putting it in /usr/share/xbmc/addons/plugin.video.astral.media/
Even after restarting XBMC, it does not appear in the addons list nor in the video plugins list (which is empty). I am using XBMC build 30704.
I've managed to "hack" in a couple skins by creating the necessary addon.xml file and I'm trying to do the same for a couple video plugins. I've read that it's possible. What am I doing wrong?