diff options
author | breadcat | 2020-09-20 12:44:12 +0100 |
---|---|---|
committer | breadcat | 2020-09-20 12:44:12 +0100 |
commit | b6c07afb6463f780f2f195c70ed1c8a5d6ab5758 (patch) | |
tree | 5eb58b9966f715f3f43b7989e2b6f7dbb880290d | |
parent | a342282f38d8f4550e0d43edf047b6a4dc272d79 (diff) | |
download | blog.minskio.co.uk-b6c07afb6463f780f2f195c70ed1c8a5d6ab5758.tar.gz blog.minskio.co.uk-b6c07afb6463f780f2f195c70ed1c8a5d6ab5758.tar.bz2 blog.minskio.co.uk-b6c07afb6463f780f2f195c70ed1c8a5d6ab5758.zip |
A new post, at last!
-rw-r--r-- | content/posts/finding-and-removing-fake-subtitles.md | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/content/posts/finding-and-removing-fake-subtitles.md b/content/posts/finding-and-removing-fake-subtitles.md new file mode 100644 index 0000000..2649fc2 --- /dev/null +++ b/content/posts/finding-and-removing-fake-subtitles.md @@ -0,0 +1,37 @@ +--- +title: "Finding and removing fake subtitles" +date: 2020-09-16T13:38:00 +tags: [ "Guides", "Linux", "Media", "Movies", "Servers", "Snippets", "Software" ] +--- + +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. + +A complete fake subtitle file will read a little something like this: +``` +1 +00:00:30,000 --> 00:00:36,000 +Provided by YTS.MX + +2 +00:00:36,500 --> 00:00:42,000 +Find the official YIFY movies site at +https://YTS.MX + +3 +00:30:30,000 --> 00:30:36,000 +Downloaded from YTS.MX + +4 +01:00:30,000 --> 01:00:36,000 +Download more movies for free +from YTS.MX +``` + +Anyway, we can find these and similar files using the following command: +``` +find . -type f -iname "*.srt" -size -4096c -exec grep YTS -l {} \; +``` + +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. + +With these results you can manually check the files and delete them if you'd like.
\ No newline at end of file |