简单的 CLI 工具,可立即增强您的电影和电视节目字幕。
项目描述
次清洁
简单的 CLI 可立即增强您的电影和电视节目字幕。
安装
pip install subclean
例子
$ 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
用法
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)
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
subclean-0.5.0.tar.gz
(20.7 kB
查看哈希)
内置分布
subclean-0.5.0-py3-none-any.whl
(35.0 kB
查看哈希)