Kodi Community Forum
Changes to the python API for Kodi Leia - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Changes to the python API for Kodi Leia (/showthread.php?tid=303073)

Pages: 1 2


RE: Changes to the python API for Kodi Leia - Rechi - 2019-08-17

(2019-07-31, 22:36)robweber Wrote: I have a question on these, not sure if what I'm seeing is a bug or intended behavior. In testing if I use the getSettingBool function on a bool type setting I get a 0 or 1 as a result. I was expecting an actual python bool True/False value. This was causing some if statements to fail on me so I wrapped them in a bool() function and then they worked. I am testing with Leia with Python 2.7 still. Would Python 3 yield a different result?

fixed at https://github.com/xbmc/xbmc/pull/16448


This forum uses Lukasz Tkacz MyBB addons.