finding-and-removing-fake-subtitles.md (1434B)
1 --- 2 title: "Finding and removing fake subtitles" 3 date: 2020-09-16T13:38:00 4 tags: [ "Guides", "Linux", "Media", "Movies", "Servers", "Snippets", "Software" ] 5 --- 6 7 A recent trend that I absolutely hate is the inclusion of fake *advertisement* subtitles in pirated video releases. As a user and a fan of subtitles, this just presents me with extra steps when I actually want the correct subtitles for the media, I need to go about finding the original release name, then find the correct subtitle file before replacing the fake file. All in all, it's a hassle I'd prefer not to have. Perhaps this is my fault for downloading horrible remux rips from horrible places in the first place. 8 9 A complete fake subtitle file will read a little something like this: 10 ``` 11 1 12 00:00:30,000 --> 00:00:36,000 13 Provided by YTS.MX 14 15 2 16 00:00:36,500 --> 00:00:42,000 17 Find the official YIFY movies site at 18 https://YTS.MX 19 20 3 21 00:30:30,000 --> 00:30:36,000 22 Downloaded from YTS.MX 23 24 4 25 01:00:30,000 --> 01:00:36,000 26 Download more movies for free 27 from YTS.MX 28 ``` 29 30 Anyway, we can find these and similar files using the following command: 31 ``` 32 find . -type f -iname "*.srt" -size -4096c -exec grep YTS -l {} \; 33 ``` 34 35 This will search the current directory for any files that end in `.srt`, are below 4KB in size, and specifically contain the text string `YTS` which is the main offender. 36 37 With these results you can manually check the files and delete them if you'd like.