[REL] Subtitle Cleaner Agent

scanner-agent-dev

#1

A Plex agent that removes nuisances from subtitle files, such as tags, pesky advertisements, and more with customizable filters.

DOWNLOAD → https://github.com/kitsuneDEV/SubsCleaner.bundle/archive/master.zip

⚠️ IN BETA ⚠️

Right now I'v tested it myself on macOS that runs my Plex server with over 5000 videos. Tested it on old entries and automatically on all the new things that have been added.

  • While extensively tested, I need more people to try it out before being sure it wont cause any damage to your library, as in not wiping out all your subtitle files by accident. Though I'v been using it fine for two weeks now with a library of 5000+ videos.
  • After installing make sure to configure it first. And then enable the agent (both for Movies and TV-shows)

Also it only works on .srt files, and please send some feedback if it works properly on Windows systems too.


#2

v0.95 now available

FIXES

  • some subtitles were not working (causing Plex to just show to spinner endlessly)
  • the agent now detects encoding, so files are now saved in the original encoding (can be set to utf-8)

MINOR

  • Now removes spaces before sentences automatically
  • added additional default filters
  • new option to remove minor punctuations (, : .)
  • option to force saving files to utf-8

https://github.com/kitsuneDEV/SubsCleaner.bundle/archive/master.zip

REMINDER: Currently still in “BETA” so try it out on some files first. (Just refresh the metadata for a movie or TV episode…)


#3

v0.97
FIXES

  • Better handling of foreign languages, Arabic, Russian and so on
  • Now detects blocks of text better (for Windows saved subtitle files)

v0.96
FIXES

  • Should now filter based on custom filters added in the preference panel
  • Some accents will work now too using an online tool to encode them (due to a limitation in Plex!)

https://github.com/kitsuneDEV/SubsCleaner.bundle/archive/master.zip

Looks to being close to fully working!


#4

V0.982

    • Now Scrubs Just The Subtitle File(S) Associated To The Episode Of Which The Metadata Is Being Processed.
    • Minor Fix: Only Process True .Srt Files (Not .Srt.Old / .Srt.Zip Etc…)

V0.98
TWO FIXES THAT MADE PLEX NOT PLAY WITH SOME SUBTITLES THAT HAD BEEN SCRUBBED

    • now forces ascii to be saved as utf-8
    • new lines are now set correctly if original subtitle file was saved on another operating system (where new lines are different)

    ALSO

    • fixes major flaw in logic of how a block is removed when a filter word is found
    • minor fix on the remove punctuations option
    • minor fix sometimes crossed encoding problem

#5

V0.988
:warning:️ CRITICAL PATCH FOR SUBTITLE FILES ORIGINALLY SAVED ON WINDOWS OS :warning:
- MINOR: IMPROVED REMOVE PUNCTUATIONS OPTION TO LEAVE PARTS LIKE MR./MRS. ALONE

And I’m pretty sure all blocks that match a filter are now properly removed.