Skip to content

MotherFatherGoodManner/pysdhstrip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pysdhstrip

python SDH to Non-SDH Convertor based on nyuszika7h pysdhstrip (Thanks!)

Intelligent SDH/HI removal tool removal tool for SRT subtitles.

Installation

  • PyPI: pip install pysdhstrip
  • From source: pdm install

Usage

Python

import pysdhstrip

with open("input.srt", encoding="utf-8") as fd:
    subtitles = fd.read()

stripped = pysdhstrip.strip(subtitles)

with open("output.srt", "w", encoding="utf-8") as fd:
    fd.write(stripped)

CLI

Needs to be installed via pip install "pysdhstrip[cli]" or pdm install --group cli.

$ pysdhstrip input.srt -o output.srt
$ pysdhstrip input.srt  # Output to stdout
$ pysdhstrip -w input.srt  # Overwrite input file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages