Plugin installation tutorial (with video guide) by Unbehagen
#1
Information 
Here is a very good tutorial for plugins, by Umbehagen the original author of the feature.

Be sure and view the video at the end of the article.

Very nice Unbehagen Smile

http://theendofthelongestline.de/xbox/ab.../index.php
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
Indeed - great work Unbehagen Smile

On a side note, the "browsing the filesystem" stuff is obviously a bad user experience - we need to mitigate this as much as possible. I could add specific code to workaround this in the mediawindows and the browse dialog (needs some special-case stuff) or alternatively we could simply auto-show the video plugins share like we do in library mode.

EDIT: I have a workaround I can use that's a bit nicer than workarounds in the mediawindows and browse dialog - essentially we just convert the "Q:\plugins" to "plugin://" in the path translation code. I guess there's specific cases to take care of though, such as users attempting to run the script from any old place (won't work) or matching up XBMC's home directory (currently I just workaround for Q:, rather than E:\Apps\XBMC for instance). I suspect this is patchy at best - IMO adding the video plugins share automatically might be a better option, though we do then have issues with when to add it (master user vs lowly users etc.)

Your thoughts?

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.


Image
Reply
#3
There are times running the plugin from a different location is favorable (favorites).

Having "plugin://video/" as an auto source is probably the best solution.

I already add plugin://programs/ to my apps source so any programs plugin will show auto and if they don't want the plugin shown why would it be installed anyways.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
True, but I guess there could potentially be issues if we allow it as an autosource and the masteruser doesn't want normal users to use the plugins (eg a porn plugin for instance). A "simple" way around for now is to assume that if the user is allowed to access scripts that they are allowed to access plugins?

Favourites shouldn't be an issue - surely as long as the plugin:// URL is the one that gets set as the favourite it should work anyway?

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.


Image
Reply
#5
Maybe there could be an advancedsetting that acts as some sort of filter list. Plugins listed there, can only be seen by the master user or by some sort of Prefix/Suffiy by a user specified. Something along the lines of: Pluginname: AdultUser1, Adultuser2. Don't know how much extra work something like this would require, and if it is userfriendly being stuffed away as an advanced setting though.
Reply
#6
Question 
Hi

I am about to make a plugin to access Azureus, the most important feature I want is to be able to delete a torrent from Azureus, so is there support for deleting from a plugin?

As I'm trying a bunch of plugins the My Videos screen is getting crowded, is there support for a Directory/folder to put plugins in?

jonib
Reply
#7
1. sort of. you could when selecting an item, bring up a menu (created in python) and ask what to do, not very nice. but there is no context menu support, where a plugin could add an item to the existing context menu.

2. this is what i use

PHP Code:
<source>
            <
name>Video Plugins</name>
            <
path>plugin://video/</path>
        
</source
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#8
Nuka1195 Wrote:1. sort of. you could when selecting an item, bring up a menu (created in python) and ask what to do, not very nice. but there is no context menu support, where a plugin could add an item to the existing context menu.
I seem to have a Delete command in the context menu with MythTV plugin, and when I tested it deleted the video but MythTV was not notified.
I'm guessing it was pointing to a real file and XBMC just deleted it normally bypassing the plugin?

Is there any plans to add more functionality to plugins? like adding support for the delete function.

Quote:2. this is what i use

PHP Code:
<source>
            <
name>Video Plugins</name>
            <
path>plugin://video/</path>
        
</source
Thanks, I discovered that yesterday but was hoping for something more flexible.

jonib
Reply
#9
http://wiki.xbmc.org/?title=HOW-TO_insta...ns_in_XBMC

Wink
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.
Reply
#10
Try my plugin tutorial in my sig also
Reply

Logout Mark Read Team Forum Stats Members Help
Plugin installation tutorial (with video guide) by Unbehagen0