Hello, I'm using this service on Openelec last stable release (Raspberry Pi 1 B and 2), and both are showing "Script error" once a while and can't get subtitles. Some subtitles seem to get downloaded, if I'd remove temp files directory at "\Userdata\addon_data\service.subtitles.subclub\"
Also I could see lastly downloaded subtitles in temp directory (in Openelec menu) while choosing out subtitles for a new movie (as in your code, if there's more subtitles in zip files, then they're unpacked to one directory). Shouldn't these files need to be removed, after choosing out correct subtitle, or when should this folder get removed?
But thumbs up for good addon (Y)
Kodi.log:
Code:
16:41:26 T:1436546112 NOTICE: Thread LanguageInvoker start, auto delete: false
16:41:26 T:1436546112 NOTICE: -->Python Interpreter Initialized<--
16:41:32 T:1436546112 NOTICE: Thread LanguageInvoker start, auto delete: false
16:41:32 T:1436546112 NOTICE: -->Python Interpreter Initialized<--
16:41:36 T:1436546112 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeEncodeError'>
Error Contents: 'ascii' codec can't encode character u'\u02d9' in position 95: ordinal not in range(128)
Traceback (most recent call last):
File "/storage/.kodi/addons/service.subtitles.subclub/service.py", line 393, in <module>
main()
File "/storage/.kodi/addons/service.subtitles.subclub/service.py", line 382, in main
subs = Download(params["id"], params["filename"])
File "/storage/.kodi/addons/service.subtitles.subclub/service.py", line 280, in Download
mtime = os.stat(pjoin(__temp__+"/subs", file.decode("utf-8"))).st_mtime
UnicodeEncodeError: 'ascii' codec can't encode character u'\u02d9' in position 95: ordinal not in range(128)
-->End of Python script error report<--
16:41:36 T:1640944704 ERROR: GetDirectory - Error getting plugin://service.subtitles.subclub/?action=download&id=1926&filename=The Notebook
(2004)