2011-08-31, 15:51
I've made a usenet streaming addon and are wondering how (or if) I should split it in order for others to utilize my functions without incorporating my code.
Basically the plugin consist of 3 parts.
1. Nzb site content listing (already one external plugin)
2. SABnzbd communication.
3. Partial rar-set player
Lets say others would like to utilize my partial rar-set player function, where should I place the code plugin.programs or should that be a script module?
(i.e. xbmc.executebuiltin("Container.Update("plugin://plugin.somewhere.rarplay?mode=play&path=somepath")")
The SABnzbd communication part needs settings, should that be placed in programs or where?
As an example I have made a radbox addon identifying vimeo and youtube links in a rss fed and are just using those addons API to start the videos without having to bother about the internals of how they work or maintain any code (except api changes)
I really like the thought about independent functions for all to utilize..
Basically the plugin consist of 3 parts.
1. Nzb site content listing (already one external plugin)
2. SABnzbd communication.
3. Partial rar-set player
Lets say others would like to utilize my partial rar-set player function, where should I place the code plugin.programs or should that be a script module?
(i.e. xbmc.executebuiltin("Container.Update("plugin://plugin.somewhere.rarplay?mode=play&path=somepath")")
The SABnzbd communication part needs settings, should that be placed in programs or where?
As an example I have made a radbox addon identifying vimeo and youtube links in a rss fed and are just using those addons API to start the videos without having to bother about the internals of how they work or maintain any code (except api changes)
I really like the thought about independent functions for all to utilize..