PyXBMCt
#1
Is it possible that PyXBMCt returns str type strings instead of unicode strings?

My addon relies heavely on PyXBMCt . I did a test (used: from kodi_six import xbmc, xbmcgui, xbmcvfs) and browse_dialog.browseSingle() returns now a unicode instead of a str.

So far, success...

If I put this unicode string in a label (using the pyXBMCt module), then it get's displayed correctly (this unicode string has some non-ascii char inside to test).

However, if I do a getLabel() on this pyXBMCt label, it returns a str type string. I was hoping that this getLabel() call would return an unicode type string.

Is there a wrapper or new version of pyXBMCt  that would return unicode type strings?


PS: this is all tested in Kodi 17.6
Add-on : Bluray iso utils Rewrite of BR_iso_enhancements
Add-on : BR_iso_Enhancements Give theatrical & directors cut from the same bluray iso each their own library entry, use bluray iso's of tv shows as if they are already ripped.
Reply
#2
Python 3 compatible version is almost ready, and I'll publish it soon.
Reply
#3
(2018-02-12, 18:50)Roman_V_M Wrote: Python 3 compatible version is almost ready, and I'll publish it soon.
Thanks!
Add-on : Bluray iso utils Rewrite of BR_iso_enhancements
Add-on : BR_iso_Enhancements Give theatrical & directors cut from the same bluray iso each their own library entry, use bluray iso's of tv shows as if they are already ripped.
Reply
#4
I have submitted an updated Python 3-compatible version of PyXBMCt to Leia branch: https://github.com/xbmc/repo-scripts/pull/808

I've given some thoughts on which branch to submit the library to, and decided not to push it to lower branches/Kodi versions because of possible incompatibilities with existing addons.
Reply
#5
Just wanted to say thanks for this, I've been testing a few things and it works great!
Reply
#6
Hi, I have an addon that uses this incredible Pyxbmct library.

I'm trying to migrate it to Python 3 to make it work on Matrix, but when testing it I get this error: TypeError: 'focusTexture' is an invalid keyword argument for this function.

It seems to be related to a RadioButton that I use. From what I can read, that property (focusTexture) has been removed from the ControlRadioButton.

Would it be possible to correct this error in PyXbmct?

Thank you very much for your attention.
Reply
#7
I know about the issue: https://github.com/romanvm/script.module.../issues/16 but still struggling to find some free time to fully investigate and fix it.
Reply
#8
As it turned out, it is a Kodi bug that should be fixed in next versions: https://github.com/xbmc/xbmc/pull/18900
Reply
#9
(2020-12-06, 01:38)Roman_V_M Wrote: As it turned out, it is a Kodi bug that should be fixed in next versions: https://github.com/xbmc/xbmc/pull/18900

Thanks you very much, Roman !!!
Reply
#10
Yes thanks from me also, time to start writing new Add-ons Smile
Reply

Logout Mark Read Team Forum Stats Members Help
PyXBMCt0