enen92 / screensaver.kaster

A chromecast-like screensaver for Kodi
GNU General Public License v2.0
25 stars 13 forks source link

Unicode error #23

Closed roidy closed 3 years ago

roidy commented 3 years ago

Getting unicode errors and no images displayed. Kodi 19 latest kaster version.

2020-12-22 13:55:34.070 T:19609   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'UnicodeDecodeError'>
                                                   Error Contents: 'ascii' codec can't decode byte 0xc3 in position 167392: ordinal not in range(128)
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/screensaver.kaster/resources/lib/screensaver.py", line 61, in onInit
                                                       self.get_images()
                                                     File "/storage/.kodi/addons/screensaver.kaster/resources/lib/screensaver.py", line 120, in get_images
                                                       images = f.read()
                                                     File "/usr/lib/python3.8/encodings/ascii.py", line 26, in decode
                                                   UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 167392: ordinal not in range(128)
                                                   -->End of Python script error report<--
roidy commented 3 years ago

Fixed with pull request https://github.com/enen92/screensaver.kaster/pull/24