Kodi Community Forum

Full Version: service.subtitles.subclub
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there!

This is my first addon for XBMC and experience with Python in general. Addon grabs Estonian subtitles from the site Subclub.eu. Major credit goes to cramm as i've used some parts of his addon for subdivx subtitles. The addon is a work in progress and is being updated constantly. Currently compatible with XBMC 13.1 "Gotham".

Available at GitHub: https://github.com/jeesus/xbmc-repo

Zip-file: http://www.upload.ee/files/4180169/servi...b.zip.html

All comments are welcome.
Hey

I'm having a problem with the addon on Raspberry PI. Everything is working on Windows though.
Code:
17:19:07 T:2857366592   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.OSError'>
                                            Error Contents: (2, 'No such file or directory', '/home/pi/.xbmc/userdata/addon_data/service.subtitles.subclub/temp\\subs')
                                            Traceback (most recent call last):
                                              File "/home/pi/.xbmc/addons/service.subtitles.subclub/service.py", line 389, in <module>
                                                main()
                                              File "/home/pi/.xbmc/addons/service.subtitles.subclub/service.py", line 376, in main
                                                subs = Download(params["id"], params["filename"])
                                              File "/home/pi/.xbmc/addons/service.subtitles.subclub/service.py", line 267, in Download
                                                files = os.listdir(__temp__+"\subs")
                                            OSError: (2, 'No such file or directory', '/home/pi/.xbmc/userdata/addon_data/service.subtitles.subclub/temp\\subs')
                                            -->End of Python script error report<--
[02x07] T:2689594432   ERROR: GetDirectory - Error getting plugin://service.subtitles.subclub/?action=download&id=12025&filename=Breaking Bad

Is it the backslash or what could be causing this error? I'm on Windows myself and can't test on Raspberry PI.
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)
Any chance to support it on Kodi 19.1?