service.iptv.manager icon indicating copy to clipboard operation
service.iptv.manager copied to clipboard

Use new settings.xml format

Open dagwieers opened this issue 4 years ago • 2 comments

Implement the new settings format. Since we are targetting Leia and Matrix only, we might as well move now to the newt settings.xml format.

dagwieers avatar May 12 '20 19:05 dagwieers

So there are some shortcomings in the new settings.xml format:

  • You are not able to use boolean conditions like HasAddon(id) or System.AddonIsEnabled(id)
  • Using RunScript() or Addon.OpenSettings(id) should work, but fails on Kodi v18.6 (Leia)

The benefits would be that:

  • Every control can specify its data type properly (i.e. a select can indicate integer format)
  • A lot more options, including help texts and advanced configuration levels

But without a working RunScript(), this becomes useless.

dagwieers avatar May 12 '20 19:05 dagwieers

@dagwieers try

<dependencies>
    <dependency type="enable" on="property" name="infobool">System.HasAddon(pvr.iptvsimple)</dependency>
</dependencies>

or

<dependencies>
    <dependency type="enable">
        <condition on="property" name="InfoBool">System.HasAddon(pvr.iptvsimple)</condition>
    </dependency>
</dependencies>

matthuisman avatar May 20 '21 07:05 matthuisman