2017-03-17, 00:42
So close... with the latest version, Cleansubs parsed half of my folders before it encountered an error
Will have a deeper look at a debug log.
UPDATE: The problem here is probably a combination of things. According to the debug log, Cleansub opened the problematic file with CP1256 (arabic) whereas it really is CP932 (Japanese Shift-JIS). Of, course, there would be only garbage to analyze.
Code:
23:39:19.204 T:9012 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: string index out of range
Traceback (most recent call last):
File "C:\Users\JoScha\AppData\Roaming\Kodi\addons\service.cleansubs\standalone.py", line 289, in <module>
intCancel = scanPaths(manFolder, 1, 1, 3)
File "C:\Users\JoScha\AppData\Roaming\Kodi\addons\service.cleansubs\standalone.py", line 176, in scanPaths
process_subs(os.path.join(path, basePath, name), 1)
File "C:\Users\JoScha\AppData\Roaming\Kodi\addons\service.cleansubs\default.py", line 417, in process_subs
if not line.text[subsPos - 1].isalnum() or not line.text[subsPos + 1].isalnum():
IndexError: string index out of range
-->End of Python script error report<--
UPDATE: The problem here is probably a combination of things. According to the debug log, Cleansub opened the problematic file with CP1256 (arabic) whereas it really is CP932 (Japanese Shift-JIS). Of, course, there would be only garbage to analyze.