Creating profiles from within scripts
#1
Hi guys,

I'm trying to set-up a new profile from within a script, but the only thing that I can find in the wiki is the built-in commands 'MasterMode' and 'LoadProfile'. Is there a command for creating a profile, or do I need to write the profile information directly to the profiles.xml file and copy the master profile directory to the userdata directory? I'm not the worlds greatest python coder, so if there is something simple that I can use that would be preferable (less chance for me to stuff up a users set-up).

Wyrm (xTV SAF)
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions here if you can't access skin settings.

FAQ's located at :- http://kodi.wiki/view/Add-on:AppTV
Reply
#2
wyrm Wrote:Hi guys,

I'm trying to set-up a new profile from within a script, but the only thing that I can find in the wiki is the built-in commands 'MasterMode' and 'LoadProfile'. Is there a command for creating a profile, or do I need to write the profile information directly to the profiles.xml file and copy the master profile directory to the userdata directory? I'm not the worlds greatest python coder, so if there is something simple that I can use that would be preferable (less chance for me to stuff up a users set-up).

Wyrm (xTV SAF)

OK, have the answer myself.

1. add a profile section to the profiles.xml file (do this thru a script)
2. create a directory within the profiles directory that contains a valid guisettings.xml file, otherwise XBMC will create a default file for you.
3. load the new profile (use LoadProfile from within the skin or a script)

All turns out to be easier that I thought would be. XBMC does all the heavy lifting for you.

Wyrm (xTV SAF)
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions here if you can't access skin settings.

FAQ's located at :- http://kodi.wiki/view/Add-on:AppTV
Reply
#3
Thanks for your "auto-response" it helped me a lot !
Reply

Logout Mark Read Team Forum Stats Members Help
Creating profiles from within scripts0