2010-06-17, 05:09
Hi,
i have just downloaded a latest build of XBMC to check out the new script addons.
Very impressed.
Just was wondering about a few things.
1) When a script is "installed", can XBMC call any .py files?
eg: install.py which i can then setup certain files/folders etc that the script needs
2) Same for uninstall, can this call eg: uninstall.py so i can undo what the install.py did before xbmc removes the script
3) How does the addon update function work?
Does it just look for a different version in the repository and then download and overwrite?
Or, is it more sophisticated?
Again, possible to allow the update to run a update.py in the script
eg:
folder structure:
dir script.youtrailer
dir resources
addon.xml
default.py
icon.png
install.py
uninstall.py
update.py
or something like that?
Thanks
I want it so my youTrailer script can install and modify the videodialog.xml skin file to add an onlick to the trailer button and remove visibility conditions.
then reverse then when uninstalled.
i have just downloaded a latest build of XBMC to check out the new script addons.
Very impressed.
Just was wondering about a few things.
1) When a script is "installed", can XBMC call any .py files?
eg: install.py which i can then setup certain files/folders etc that the script needs
2) Same for uninstall, can this call eg: uninstall.py so i can undo what the install.py did before xbmc removes the script
3) How does the addon update function work?
Does it just look for a different version in the repository and then download and overwrite?
Or, is it more sophisticated?
Again, possible to allow the update to run a update.py in the script
eg:
folder structure:
dir script.youtrailer
dir resources
addon.xml
default.py
icon.png
install.py
uninstall.py
update.py
or something like that?
Thanks
I want it so my youTrailer script can install and modify the videodialog.xml skin file to add an onlick to the trailer button and remove visibility conditions.
then reverse then when uninstalled.