Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

πŸ§™πŸ“– Simple CLI to instantly enhance your movie & TV show subtitles

License

Notifications You must be signed in to change notification settings

disrupted/subclean

Repository files navigation

Subclean

Simple CLI to instantly enhance your movie & TV show subtitles.

Installation

pip install subclean

Example

$ subclean subtitle.srt
12:35:30.337 | INFO | Importing subtitle subtitle.srt
12:35:30.344 | INFO | BlacklistProcessor running
12:35:30.397 | INFO | SDHProcessor running
12:35:30.421 | INFO | DialogProcessor running
12:35:30.426 | INFO | ErrorProcessor running
12:35:30.458 | INFO | LineLengthProcessor running
12:35:30.466 | INFO | Saving subtitle subtitle_clean.srt

before-after

Usage

subclean [-h] [-v] [-V] [-o OUTPUT | --overwrite]
 [--processors {LineLength,SDH,Blacklist,Error,Style,Dialog}
 [--regex REGEX] [--line-length LINE_LENGTH]
 FILE [FILE ...]
positional arguments:
 FILE Subtitle file to be processed
optional arguments:
 -h, --help show this help message and exit
 -v, --verbose Increase output verbosity
 -V, --version show program's version number and
 exit
 -o OUTPUT, --output OUTPUT
 Set output filename
 --overwrite Overwrite input file
 --processors {LineLength,SDH,Blacklist,Error,Style,Dialog}
 Processors to run
 (default: Blacklist SDH Dialog Error LineLength Style)
 --regex REGEX Add custom regular expression to BlacklistProcessor
 --line-length LINE_LENGTH
 Maximum total line length when concatenating short lines.
 (default: 50)

About

πŸ§™πŸ“– Simple CLI to instantly enhance your movie & TV show subtitles

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /