New Addon Manager informations for developers. - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: New Addon Manager informations for developers. (/showthread.php?tid=70731) |
- jmarshall - 2010-06-30 Ratings will be (eventually) supported by the backend - not something your addon has to worry about. - linuxluemmel - 2010-06-30 I saw somewhere inside a addon.xml a field <Licence> Could I add this fileld to addon.xml ? Will this field onyl be showed during installation of addon ? - linuxluemmel - 2010-06-30 Is there a xbmc python function witch gives me the full path to my data-container ? Or should I use the $HOME as base for my own function ? Regards Hans - ppic - 2010-06-30 os.getcwd() returns the path where py the file is executed. - theuni - 2010-06-30 FYI, preliminary info for setting up a 3rd party repo can be found here. Feel free to ask if anything is unclear. A guide for submitting addons to the official xbmc.org repo is coming up next. TheUni - linuxluemmel - 2010-06-30 ppic Wrote:os.getcwd() returns the path where py the file is executed. Yes .. But I asked for a function that will return the complet path to the settings ... this would be easyer than as example ... os.getcwd + "/../../userdata/addon_data/script-video-ripper" or this os.getenv("HOME") + "/.xbmc/userdata/addon_data/script-video-ripper" Regards Hans - ppic - 2010-06-30 linuxluemmel Wrote:Yes .. But I asked for a function that will return the complet path to the settings ... sorry but i don't understand what's your need - linuxluemmel - 2010-06-30 ppic Wrote:sorry but i don't understand what's your need I do store a few things inside the userdata directory for my addon. IMHO the settings Manager could give the full path. - spiff - 2010-06-30 special://profile/addon_data/<id> - ppic - 2010-06-30 settings are supported, what do you want to store? are you talking about xbmc userdata directrory ? wouldn't it be simpliest to use a cache directory in your script? - jmarshall - 2010-07-01 You can use getAddonInfo("profile") I think it is to grab the path to your addon_data folder. Cheers, Jonathan - linuxluemmel - 2010-07-01 jmarshall Wrote:You can use getAddonInfo("profile") I think it is to grab the path to your addon_data folder. Thank you ;-) I guess this was the searched one .. Regards Hans - spiff - 2010-07-01 ppic Wrote:settings are supported, what do you want to store? this would be a rejection reason if you want shit in the official repo. never write to the add-on dir (it may very well be in a read-only path) - linuxluemmel - 2010-07-01 spiff Wrote:this would be a rejection reason if you want shit in the official repo. never write to the add-on dir (it may very well be in a read-only path)Inside my addon I do only write to the data-dir. I do not write anything into addon directory. A little example : I have a shell-script witch do transcode ... and should give feedback to a gui-function. You can find the shell-script here Code: http://code.google.com/p/swiss-army-knife/source/browse/trunk/shell-linux/blueray-transcode.sh Code: http://code.google.com/p/swiss-army-knife/wiki/API I only use small files ... So I guess I can use without any fear the data-dir of the addon ? - spiff - 2010-07-02 no. again, store data in special://profile/addon_data/<id>. you CANNOT assume that the main add-on dir is writable. e.g. somebody bundles your add-on with an installer - it goes to /usr/share/ on linux - nonwritable by mere mortals. |