• 1
  • 20
  • 21
  • 22(current)
  • 23
  • 24
Release CleanSubs - (Clean subtitles from the ads and other rubbish)
HeresJohnny is right - I encounter a lot of subtitles (at least Serbian ones) that are in bad format - they are marked as UTF8 but are in fact CP1250. And it is no trivial task (if possible at all) to detect CP.
Reply
Hi @"DaLanik" 
I've just downloaded and opened the sub that was showing me artifacts and the sub that worked just fine.
First I checked the sub that worked and much to my surprise, I found out that it was in ISO-8859-1...
Then I checked the one that shows artifacts and found out that it's also in ISO-8859-1.
But then, also much to my surprise, I noticed that the artifacts can already be seen in the text editor...
:
as entranhas de um irmão dele
voltou em segurança.
- Concentre-se na sua recuperação.

These should all look like this:
:
as entranhas de um irmão dele
voltou em segurança.
- Concentre-se na sua recuperação.

So, in this case, it seems that there was some kind of conversion that didn't go according to what was planned and some characters were replaced by the artifacts, namely:
'ã' was replaced by 'ã'
'ç' was replaced by 'ç'
'ç' and 'ã' were both replaced by 'çã'

This is the first time that I bump into such a problem. When I first reported artifacts in cleansubs some months ago I was managing the subs on my PC with file editors and command line utils which means that by that time there seemed to be some sort of issue with cleansubs.
Right now, everything appears to be working fine and the problem is upstream in the sub provider. I will take this issue to them.
Thanks for all your support @"DaLanik" .
Cheers
Amazon FireTV stick 4k Max
(worst device ever for running Kodi on...)

Kodi 20 Nexus
gone temporarily back to Kodi 19.5 due to Nexus subtitles font issues
Reply
v6.3
- Small bug fixes
Reply
v6.4
- Language file format related changes
Reply
Hi DaLanik,

does this addon still work under Kodi 18 Leia? There is no animation anymore, when i'm downloading the subs. And the rubbish with websites, etc is still showing at the beginning from movies and episodes.

Thank you for your answer
cgi2011
Reply
I'll check again, but it worked for me with animation and everything...
Reply
Yers, definitely working. I am using Leia v18.0 on windows (32 bit version)
Reply
I'm on Leia too with a RPi3.
In my case I can see the animation but apparently cleansubs doesn't do anything else apart from the animation.
Later today I'll try to grab some logs and upload them.
Cheers
Amazon FireTV stick 4k Max
(worst device ever for running Kodi on...)

Kodi 20 Nexus
gone temporarily back to Kodi 19.5 due to Nexus subtitles font issues
Reply
Hi,

i logged the download of a sub. i don't get what the problem is. maybe you have an idea Smile :

Log

Thx mate
Reply
Can you post the whole log? Run Kodi, play something, download subtitles, wait for resumed play, then a couple of seconds and close Kodi.
Reply
Hi,
there you are:
LOG
Thank you
cgi2011
Reply
Pretty strange log... did you edit the file??

DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: 'xxx://xxxx/xxx/xxx/xxx/xxx/xxx (2018)'

xxx:// is not a real path?
Reply
Yes, I anonymised the paths and the file. The rest is untouched...
Reply
Why are you using nfs/smb path for temporary files?

I am also missing the 1st part of the log where kodi boots... there is useful info there....

i.e.
2019-02-25 18:39:38.134 T:236   DEBUG: CLEANSUBS >> STARTED VERSION 6.4
2019-02-25 18:39:38.384 T:236   DEBUG: CLEANSUBS >> DEFINITIONS >> NO NEW DEFINITIONS (L:28100 == R:28100)
2019-02-25 18:39:38.460 T:236   DEBUG: CLEANSUBS >> SETTING ON >> True
2019-02-25 18:39:38.460 T:236   DEBUG: CLEANSUBS >> SETTING INFO >> True
2019-02-25 18:39:38.460 T:236   DEBUG: CLEANSUBS >> SETTING LOGO >> True
2019-02-25 18:39:38.460 T:236   DEBUG: CLEANSUBS >> SETTING FOLDER >>
2019-02-25 18:39:38.460 T:236   DEBUG: CLEANSUBS >> SETTING CUSTOM DEF >> True
2019-02-25 18:39:38.460 T:236   DEBUG: CLEANSUBS >> SETTING REMOVE CC >> False
2019-02-25 18:39:38.460 T:236   DEBUG: CLEANSUBS >> SETTING REMOVE TAGS >> False
2019-02-25 18:39:38.460 T:236   DEBUG: CLEANSUBS >> SETTING SUBS BACKGROUND >> False
2019-02-25 18:39:38.462 T:236   DEBUG: CLEANSUBS >> SETTING SUBS BACKGROUND TXT COLOR >> 00FFFF
2019-02-25 18:39:38.462 T:236   DEBUG: CLEANSUBS >> SETTING METHOD >> 0
2019-02-25 18:39:38.462 T:236   DEBUG: CLEANSUBS >> SETTING HEURISTICS LINES NR >> 2
2019-02-25 18:39:38.462 T:236   DEBUG: CLEANSUBS >> SETTING DELETE ORIGINAL SUBS >> True
2019-02-25 18:39:38.462 T:236   DEBUG: CLEANSUBS >> SETTING SUBFIRST >> False
2019-02-25 18:39:38.462 T:236   DEBUG: CLEANSUBS >> SETTING CHARSET >> DEFAULT
2019-02-25 18:39:38.462 T:236   DEBUG: CLEANSUBS >> SETTING SUB LANGUAGES: >>CZECH<<
2019-02-25 18:39:38.462 T:236   DEBUG: CLEANSUBS >> SETTING SUB LANGUAGES: >>ENGLISH<<
2019-02-25 18:39:38.462 T:236   DEBUG: CLEANSUBS >> SETTING SUB LANGUAGES: >>SERBO-CROATIAN<<
2019-02-25 18:39:38.462 T:236   DEBUG: CLEANSUBS >> SETTING SUB LANGUAGES: >>GENERIC<<
2019-02-25 18:39:38.531 T:236   DEBUG: CLEANSUBS >> USING TOTAL DEFINITIONS: 669 elements
2019-02-25 18:39:38.875 T:236   DEBUG: CLEANSUBS >> UUID is 52
2019-02-25 18:39:38.889 T:236   DEBUG: CLEANSUBS >> SQLITE ERROR IN MAIN
2019-02-25 18:39:38.889 T:236   DEBUG: CLEANSUBS >> NO RECORDS IN LOCAL DB
2019-02-25 18:39:38.889 T:236   DEBUG: CLEANSUBS >> REMOVED PYO

Anyways, the bottom line is that the subs file doesn't exist Smile Or it can't open it for some reason:

2019-02-25 20:00:51.201 T:22037   DEBUG: CLEANSUBS >> SUBS ADDED >>xxxx (2018).en.srt
2019-02-25 20:00:51.201 T:22037   DEBUG: CLEANSUBS >> FILE DOESNT EXIST: xxx://xxxx/xxx/xxx/xxx/xxx/xxx (2018)/xxxx (2018
2019-02-25 20:00:51.204 T:22037   DEBUG: CLEANSUBS >> SQL ERROR IN CheckDatabase
2019-02-25 20:00:51.205 T:22037   DEBUG: CLEANSUBS >> SUB STATS WILL BE ADDED TO LOCAL DATABASE
2019-02-25 20:00:51.205 T:22037   DEBUG: CLEANSUBS >> PRE ENC >> CAN NOT OPEN SUBS!!!
2019-02-25 20:00:51.205 T:22037   DEBUG: CLEANSUBS >> ENC >> ERROR
2019-02-25 20:00:51.206 T:22037   DEBUG: Previous line repeats 9 times.
2019-02-25 20:00:51.206 T:22037   DEBUG: CLEANSUBS >> ENC >> OPENED WITH KODI ENCODING: DEFAULT

The file should be downloaded to local folder.
Reply
Hi,
Why are you using nfs/smb path for temporary files?
That is not on purpose. Can you help me to do it right?

I always used SMB until my NAS broke down. With my new NAS and Kodi 18, I couldn't get SMB to work. So I switched to nfs which works fine. Except the cleaning of the subs Angel.

I'll make a new log today, with boot sequence of Kodi.

Greets
Reply
  • 1
  • 20
  • 21
  • 22(current)
  • 23
  • 24

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