line

The KODI Project

KODI ADDON - CLEAN SUBTITLES FROM THE ADS AD OTHER RUBBISH

by Dalibor Lanik

line



CLEANSUBS - CLEAN SUBTITLES FROM THE ADS AND OTHER RUBBISH

CLEANSUBS

Are you using subtitles addons to download subtitles for your movies? Then you must know that all subs from opensubtitles and other sites have various "signatures' like "Downloaded from..." or "Translated by", or much worse "Support us by voting..." etc etc. After a while it gets kinda annoying. Especially since some of the subs stay on screen for a long period of time.



I thought there must be a way to do something about this - so I wrote this add-on. What it does is - parses the downloaded subtitles and removes the lines with advertisements or signatures etc. Then it displays the overlay for a few seconds confirming the cleaning was done.



How it works? I will get a bit technical here - but just a bit. This service waits for the subtitles to be downloaded, it is monitoring temp folder for any changes in srt and sub files and then it "cleans" the subtitles file, and tells the player to use this new, cleaned file. Of course, this would not work without some kind of "definitions" - just like antivirus software has signatures - this add-on uses the definitions file to detect various unwanted strings. Also there is a "quick" mode which uses heuristic approach and is much faster - but the results don't have to be so good as with definitions. Anyway, the speed difference on my PC is like 0.65 seconds for cleanup with definitions versus 0.06 seconds for heuristics. Not relevant on a PC, but could be on slower Android boxes.



For the time being, I set it up pretty good for Serbian, Croatian and Czech, and there are definitions in English, German, Portugese, French, Polish and Dutch. So, if you want to use this add-on, you need to add lines that need to be removed to this definitions. Now, the definitions are downloaded automatically on KODI start from my web. That means all definitions need to be added to this one central place. So if you want to use this, send me the lines you want to add to the definitions - this way all users benefit from your work.



New versions can clean video library too, as well as folder selected in settings. Also, there is the option to remove all CC (closed caption) subtitles.

Anonymous statistics are collected for analysis purposes. Site with statistics (and a lot more!) is here

In order to install it, first install my REPO: Lanik Repo

Then install add-on, no configuration needed.




BUY ME A BEER!

    I already spent many days and nights to develop this software and write this tutorial and am offering it for free. So, if you like it and feel it is usefull to you, buy me a beer or two! Donate 2-3 or $ or whatever you think appropriate. Cheers!






line