Addon's new setting format
#1
Anyone was able to update addon settings to new format https://kodi.wiki/view/Add-on_settings_conversion

these docs seems to be full of bugs even first sample 2.1 type="text" is not working

<setting id="username" type="string" label="30001" help=""> <level>0</level> <default/> <control type="edit" format="string"> <heading>30001</heading> </control> </setting>

in kodi log: 
CSettingString: error reading the default value of "username"
Reply
#2
thanx for the heads-up!

you're right indeed. all settings without a default value need to have allowempty to be set to true.

xml:
<setting id="test01" type="string" label="32001" help="">
    <level>0</level>
    <default/>
    <constraints>
        <allowempty>true</allowempty>
    </constraints>
    <control type="edit" format="string">
        <heading>32001</heading>
    </control>
</setting>

i'll go through the wiki examples later today and update them where needed.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
@ronie thx there seems to be problem with 2.17 type="folder" as well, but i'm targeting just leia so maybe it's fixed on master

btw is there any script for auto conversion from old to new format ... new one is such verbose and painful to convert manually
Reply
#4
there are several bugs in leia with the new settings format, so it's really not worth it to try it there.

a conversion script can be found here: https://forum.kodi.tv/showthread.php?tid=350135
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
Addon's new setting format0