2019-04-07, 03:28 AM
OK, I don't know if you want all these in separate threads or just one big thread of testing problems, let me know. I just got 2.6.1 on my Windows machine, and it wasn't launching. Different error than my issue on OSX, so I downloaded 2.6.1 on my Mac, fixed the os.uname() thing, and got the same error I'm getting on my Windows machine.
I fixed the error by changing lines 81 and 82 of XNEWA_Settings.py to read:
I honestly don't know if that's the best way to handle that, but it is consistent with what you were doing with converting other settings to ints. If you keep generating errors this fast I won't ever get around to testing on OSMC. '-)
Code:
2019-04-06 16:59:29.121 T:123145568337920 DEBUG: EXCEPTION: : Traceback (most recent call last):
File "/Users/pkscout/Library/Application Support/Kodi/addons/script.kodi.knew4v5/default.py", line 45, in <module>
my_settings = XNEWA_Settings()
File "/Users/pkscout/Library/Application Support/Kodi/addons/script.kodi.knew4v5/resources/src/XNEWA_Settings.py", line 54, in __init__
self.loadFromSettingsXML()
File "/Users/pkscout/Library/Application Support/Kodi/addons/script.kodi.knew4v5/resources/src/XNEWA_Settings.py", line 81, in loadFromSettingsXML
self.XNEWA_PREBUFFER = addon.getSetting("prebuffer") // 4
TypeError: unsupported operand type(s) for //: 'str' and 'int'
I fixed the error by changing lines 81 and 82 of XNEWA_Settings.py to read:
Code:
self.XNEWA_PREBUFFER = int(addon.getSetting("prebuffer")) // 4
self.XNEWA_POSTBUFFER = int(addon.getSetting("postbuffer")) // 4
I honestly don't know if that's the best way to handle that, but it is consistent with what you were doing with converting other settings to ints. If you keep generating errors this fast I won't ever get around to testing on OSMC. '-)