PDA

View Full Version : Python functions to add/remove sources


asg
2007-11-09, 00:52
Hey all,

i´ve recently created two new xbmcmodule functions to add and remove bookmark/sources. The main idea was to create a method to let python scripters easily add and remove bookmarks from within their scripts.

Its mainly the same method thats already used in HTTPAPI besides it works without the need of an enabled webserver and it automatically creates cached thumbnails of the plugin folder image.

Add plugin example :xbmc.AddSource('video','Plugin Name','plugin://video/Plugin Name/')I really would love to see it added.. maybe even as functions of the xbmcplugin module if theres no need for a general add/remove source.

Please tell me what you think about it. Thanks ..

Regards
asg

Gamester17
2007-11-09, 11:00
Patch please http://sourceforge.net/tracker/?group_id=87054&atid=581840

http://xboxmediacenter.com/wiki/index.php?title=HOW-TO_submit_a_patch

:cool:

asg
2007-11-09, 11:46
ok. ill have to fix some issues nuka mentioned on irc yesterday before i submit the patch to sf.net.

my main worry is that nuka told me that something like this was discussed before and the team wont add it. Thats why i would like to know if other scripters out there would like to have the ability to add sources directly from their scripts .. just to avoid wasting my time.

asg
2007-11-11, 12:34
patch @ http://sourceforge.net/tracker/index.php?func=detail&aid=1829057&group_id=87054&atid=581840