Skip to main content

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

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

subclean-0.5.0.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

subclean-0.5.0-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file subclean-0.5.0.tar.gz.

File metadata

  • Download URL: subclean-0.5.0.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.11.0-1025-azure

File hashes

Hashes for subclean-0.5.0.tar.gz
Algorithm Hash digest
SHA256 fc61f1ea21de47aa8dc76b786dd14a9b5f17e88331c4ff58fa89d46371a388c9
MD5 a9954d5ce0aa70a6506731f54b2736fc
BLAKE2b-256 2196eedc61e7f802210cd13e787f80d48d6575f083251dcd79221c00587e2f5a

See more details on using hashes here.

File details

Details for the file subclean-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: subclean-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.11.0-1025-azure

File hashes

Hashes for subclean-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3c81935b22c25f7106ea80d6a7c8e407776daa926f34ddd3fc621e41a2b5a09
MD5 e664762a90d7c8398c55200e7df6cf33
BLAKE2b-256 d2de0ce19f0f6cc1995daf39589efc22ddd8a4f33a7054d1f64f7b1142435f48

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page