2020-05-07, 22:48
I found a case where the add-on chokes with this error:
The subtitle filename was "Arrested Development 4x12.Señoritis.en.srt". After changing it to "Arrested Development 4x12.Senoritis.en.srt" the error went away.
Code:
2020-05-07 22:25:18.233 T:24768 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 28: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Users\JPS\AppData\Roaming\Kodi\addons\service.cleansubs\standalone.py", line 223, in <module>
intCancel = scanPaths(manFolder, 1, 1, 3)
File "C:\Users\JPS\AppData\Roaming\Kodi\addons\service.cleansubs\standalone.py", line 125, in scanPaths
xbmc.log("CLEANSUBS STANDALONE >> FILE (L2): >>" + f2.encode('utf8') + "<<")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 28: ordinal not in range(128)
-->End of Python script error report<--
The subtitle filename was "Arrested Development 4x12.Señoritis.en.srt". After changing it to "Arrested Development 4x12.Senoritis.en.srt" the error went away.