• 1
  • 20
  • 21
  • 22
  • 23
  • 24(current)
Release CleanSubs - (Clean subtitles from the ads and other rubbish)
(2019-12-02, 13:18)HeresJohnny Wrote: REQUEST for a Kodi M compatible version (update to python3). Thanks in advance!

We'll see when Kodi with Python 3 is available Smile
Reply
I'm running the nightlies and would like to continue to do so because there are great improvements of the music library. Unfortunately, many of the video add-ons have not made the transition to python3 yet.
Reply
I found a case where the add-on chokes with this error:
Code:

2020-05-07 22:25:18.233 T:24768 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xc3 in position 28: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Users\JPS\AppData\Roaming\Kodi\addons\service.cleansubs\standalone.py", line 223, in <module>
intCancel = scanPaths(manFolder, 1, 1, 3)
File "C:\Users\JPS\AppData\Roaming\Kodi\addons\service.cleansubs\standalone.py", line 125, in scanPaths
xbmc.log("CLEANSUBS STANDALONE >> FILE (L2): >>" + f2.encode('utf8') + "<<")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 28: ordinal not in range(128)
-->End of Python script error report<--

The subtitle filename was "Arrested Development 4x12.Señoritis.en.srt". After changing it to "Arrested Development 4x12.Senoritis.en.srt" the error went away.
Reply
(2019-12-02, 15:26)HeresJohnny Wrote: I'm running the nightlies and would like to continue to do so because there are great improvements of the music library. Unfortunately, many of the video add-ons have not made the transition to python3 yet.
There is p3 version now in p3 repo

D.
Reply
Thanks Big D.! Unforutnately the add-on crashes right away when trying to run it on the arbitrary folder:

Code:
2020-05-09 23:35:27.969 T:3500 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: 'str' object has no attribute 'decode'
Traceback (most recent call last):
File "C:\Kodi\portable_data\addons\service.cleansubs\standalone.py", line 46, in decodeName
name = name.decode('utf8')
AttributeError: 'str' object has no attribute 'decode'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Kodi\portable_data\addons\service.cleansubs\standalone.py", line 223, in <module>
intCancel = scanPaths(manFolder, 1, 1, 3)
File "C:\Kodi\portable_data\addons\service.cleansubs\standalone.py", line 116, in scanPaths
progress.update(int(percent), decodeName(message1), decodeName(message2), str(message3))
File "C:\Kodi\portable_data\addons\service.cleansubs\standalone.py", line 48, in decodeName
name = name.decode('windows-1252')
AttributeError: 'str' object has no attribute 'decode'
-->End of Python script error report<--

Those are my settings:

<settings version="2">
<setting id="on">true</setting>
<setting id="info">true</setting>
<setting id="logo">true</setting>
<setting id="method" default="true">0</setting>
<setting id="herlines">20</setting>
<setting id="folder">smb://192.168.1.185/TV-Movie/_tv/</setting>
<setting id="removecc" default="true">false</setting>
<setting id="removetags" default="true">false</setting>
<setting id="blackbar" default="true">false</setting>
<setting id="blackbar_textcolor" default="true">#FFFF00</setting>
<setting id="custdef">false</setting>
<setting id="delorigsub" default="true">false</setting>
<setting id="ID" default="true">aee0971a-e376-4ec2-935e-6b31f125322b</setting>
<setting id="IDSynced" default="true">1</setting>
<setting id="customdef" default="true">false</setting>
</settings>

BTW, that ID, it's not tracking, is it?

UPDATE:
Could the crash be due to some language strings files not being encoded in utf8 (resource.language.cs_CZ and resource.language.sr_RS)?
Reply
can it work with .ass subtitles?
Reply
Does anybody know what it takes to make this work on Kodi N?
Reply
In other words, a Python 2 to 3 conversion..?
Reply
No, it's already Python 3 as far as I know as it runs on M.
Reply
Add-on unofficlally updated by me to work with latest Kodi 20, will also work with Kodi 19.
Download
Reply
Thank you for this great update Heresjohnny!
Reply
The Addon doesn't work on Kodi Nexus 20.2 (Android) . Does anyone has this problem too?
Reply
  • 1
  • 20
  • 21
  • 22
  • 23
  • 24(current)

Logout Mark Read Team Forum Stats Members Help
CleanSubs - (Clean subtitles from the ads and other rubbish)2