New Addon Manager informations for developers.
#31
Ratings will be (eventually) supported by the backend - not something your addon has to worry about.
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
#32
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 ?
Reply
#33
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
Reply
#34
os.getcwd() returns the path where py the file is executed.
Reply
#35
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
Reply
#36
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
Reply
#37
linuxluemmel Wrote: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"

Regards
Hans

sorry but i don't understand what's your need
Reply
#38
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.
Reply
#39
special://profile/addon_data/<id>
Reply
#40
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?
Reply
#41
You can use getAddonInfo("profile") I think it is to grab the path to your addon_data folder.

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
#42
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
Reply
#43
ppic Wrote: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?

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)
Reply
#44
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
Ant the api I have written here.
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 ?
Reply
#45
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.
Reply

Logout Mark Read Team Forum Stats Members Help
New Addon Manager informations for developers.0