[Kodi Leia] Conditions from python
#1
Hi in testing one of my addons for Leia I notice something changed in conditions in the skin

In the skin I have

<visible>substring(Window.Property(showosd), true)</visible>

and in the code I change the mode by change the

self.win = xbmcgui.Window(xbmcgui.getCurrentWindowId())
self.win.setProperty('showosd', 'true') or 'false'

It works fine in older versions Can anyone help offer suggestions

Thanks,

Martin
Reply
#2
as of Krypton it is recommended (and mandatory from Leia onwards)
to use String.Contains() instead of SubString()
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
Thanks a lot, sorry I didn't think to check the skin release notes.

Martin
Reply

Logout Mark Read Team Forum Stats Members Help
[Kodi Leia] Conditions from python0