Hi,
since yesterday I am getting script errors on CU LRC Lyrics. I'm running Kodi 14.2 on Android Fire TV.
From the logs it looks like some lyrics-site does a SSL redirect which can't be handled correctly (for reasons inside urllib3 library).
I don't know if there is a workaround.
Possibly CU LRC could trap those errors so that it does not bail out completely and instead continue in the hope that a next lyric is available locally.
Excerpt from log:
Code:
14:42:02 T:1570251296 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'simplejson.scanner.JSONDecodeError'>
Error Contents: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.cu.lrclyrics/default.py", line 41, in <module>
culrc_run('service')
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.cu.lrclyrics/default.py", line 27, in culrc_run
gui.MAIN(mode=mode)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.cu.lrclyrics/resources/lib/gui.py", line 25, in __init__
self.main_loop()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.cu.lrclyrics/resources/lib/gui.py", line 64, in main_loop
self.myPlayerChanged()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.cu.lrclyrics/resources/lib/gui.py", line 220, in myPlayerChanged
lyrics = self.get_lyrics( song )
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.cu.lrclyrics/resources/lib/gui.py", line 87, in get_lyrics
lyrics = self.find_lyrics( song )
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.cu.lrclyrics/resources/lib/gui.py", line 142, in find_lyrics
lyrics = scraper[1].get_lyrics( song )
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.cu.lrclyrics/resources/lib/culrcscrapers/lyricwiki/lyricsScraper.py", line 35, in get_lyrics
data = simplejson.loads(response)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.simplejson/lib/simplejson/__init__.py", line 488, in loads
return _default_decoder.decode(s)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.simplejson/lib/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.simplejson/lib/simplejson/decoder.py", line 389, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.simplejson/lib/simplejson/scanner.py", line 119, in scan_once
return _scan_once(string, idx)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.simplejson/lib/simplejson/scanner.py", line 115, in _scan_once
raise JSONDecodeError(errmsg, string, idx)
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
-->End of Python script error report<--
14:42:07 T:1752330752 ERROR: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
14:42:54 T:1758037376 NOTICE: Thread JobWorker start, auto delete: true
Thanks,
-Markus