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?
mindweaver
Posting Freak Joined: Jan 2004 Reputation: 1 Location: Sweden |
2010-05-25 00:20
Post: #1
|
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,570 Joined: Oct 2003 Reputation: 138 |
2010-05-25 02:13
Post: #2
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 Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
mindweaver
Posting Freak Joined: Jan 2004 Reputation: 1 Location: Sweden |
2010-05-25 08:43
Post: #3
Thank you for your answer! Looking forward to testing it!
|
| find quote |
mindweaver
Posting Freak Joined: Jan 2004 Reputation: 1 Location: Sweden |
2010-05-25 09:11
Post: #4
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] |
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,570 Joined: Oct 2003 Reputation: 138 |
2010-05-25 10:59
Post: #5
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. Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
mindweaver
Posting Freak Joined: Jan 2004 Reputation: 1 Location: Sweden |
2010-05-25 11:12
Post: #6
jmarshall Wrote: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. that seems to do something Now it actually started the plugin, but I got errors. Is it to any use for me to debug the script or isn't the plugin part added completely yet?Code: 11:11:08 T:5448 M:283906048 INFO: -->Python script returned the following error<--jmarshall Wrote:Note that it'll show up in the root of your video library by default. Not really sure what you mean by that. Where exactly is it suppose to show up? Can't find it under VIDEOS. |
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,570 Joined: Oct 2003 Reputation: 138 |
2010-05-25 11:27
Post: #7
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 Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
ppic
Skilled Python Coder Joined: Feb 2009 Reputation: 10 Location: France idf |
2010-05-25 11:35
Post: #8
we've done some work on some script and plugin to test, see here : http://code.google.com/p/passion-xbmc/so...unk/addons
Passion-XBMC Repository Download your SVN skins and addons TvTunes Addon Download Play your theme while browsing library TVshow Next Aired display next aired infos from tvrage.com Logo Downloader Script download Logo/clearart/show thumbs/poster/banner Bande-Annonce Allociné plugin watch trailers in french and vo SportLive Script Live score match info in XBMC (not compatible dharma) |
| find quote |
mindweaver
Posting Freak Joined: Jan 2004 Reputation: 1 Location: Sweden |
2010-05-25 11:39
Post: #9
ppic Wrote:we've done some work on some script and plugin to test, see here : http://code.google.com/p/passion-xbmc/so...unk/addons They seem to use the old description.xml and not the newer addon.xml |
| find quote |
mindweaver
Posting Freak Joined: Jan 2004 Reputation: 1 Location: Sweden |
2010-05-25 11:47
Post: #10
jmarshall Wrote:You probably want to pass the plugin ID into getSettings I think. Sorry if I'm daft. With plugin ID do you mean "plugin.amtlite". Adding that just caused TypeError: an integer is required. I guess I will have to give up and try and get Nuka1195 to get it working ![]() EDIT: http://xbmc.sourceforge.net/python-docs/xbmcplugin.html from what I can see getSetting should only take one argument. jmarshall Wrote:And it shows up in the root of you video library. No idea about files view - haven't tried it. Nope, nothing in video library root. But that's no biggie. I have a link to it. just want to get it working too bad I've never done python coding.
(This post was last modified: 2010-05-25 11:58 by mindweaver.)
|
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Now it actually started the plugin, but I got errors. Is it to any use for me to debug the script or isn't the plugin part added completely yet?
Search
Help