You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 7, 2021. It is now read-only.
Been trying to play around with the code but my python knowledge is near zero.
Thanks for maintaining this script btw.
It was working great for me until recently I added some Irish language programs to my library.
The presence of any non-ascii characters in a channels name makes the script hang on startup as soon as it tries to create that channel, until I force restart Kodi.
For example a channel where the TV Network is "RTÉ2".
Or a channel set to a single TV Show, if there is an accented character in the title, same issue.
That same tv show title can be part of a channel, no errors, it only happens when the non-ascii character would appear in the channel name/title.
Here's the logs
2019-09-10 15:33:31.635 T:123145471717376 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "/Users//Library/Application Support/Kodi/addons/script.pseudotv/resources/lib/Overlay.py", line 179, in onInit
if self.readConfig() == False:
File "/Users//Library/Application Support/Kodi/addons/script.pseudotv/resources/lib/Overlay.py", line 259, in readConfig
self.channels = self.channelList.setupList()
File "/Users//Library/Application Support/Kodi/addons/script.pseudotv/resources/lib/ChannelList.py", line 110, in setupList
self.setupChannel(i + 1, False, makenewlists, False)
File "/Users//Library/Application Support/Kodi/addons/script.pseudotv/resources/lib/ChannelList.py", line 286, in setupChannel
if self.makeChannelList(channel, chtype, chsetting1, chsetting2, append) == True:
File "/Users//Library/Application Support/Kodi/addons/script.pseudotv/resources/lib/ChannelList.py", line 454, in makeChannelList
fle = self.makeTypePlaylist(chtype, setting1, setting2)
File "/Users//Library/Application Support/Kodi/addons/script.pseudotv/resources/lib/ChannelList.py", line 534, in makeTypePlaylist
return self.createNetworkPlaylist(setting1)
File "/Users/****/Library/Application Support/Kodi/addons/script.pseudotv/resources/lib/ChannelList.py", line 574, in createNetworkPlaylist
flename = xbmc.makeLegalFilename(GEN_CHAN_LOC + 'Network_' + network + '.xsp')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)
-->End of Python script error report<--
I attempted adding some encode/decode methods but to no avail. I simply don't have the python knowledge to try figure it out.
Been trying to play around with the code but my python knowledge is near zero.
Thanks for maintaining this script btw.
It was working great for me until recently I added some Irish language programs to my library.
The presence of any non-ascii characters in a channels name makes the script hang on startup as soon as it tries to create that channel, until I force restart Kodi.
For example a channel where the TV Network is "RTÉ2".
Or a channel set to a single TV Show, if there is an accented character in the title, same issue.
That same tv show title can be part of a channel, no errors, it only happens when the non-ascii character would appear in the channel name/title.
Here's the logs
I attempted adding some encode/decode methods but to no avail. I simply don't have the python knowledge to try figure it out.