fsub/README.md

29 lines
978 B
Markdown
Raw Normal View History

2021-08-29 09:48:54 -04:00
# fsub
2021-11-14 13:49:35 -05:00
`fsub` is a Python script for cleaning, editing and fixing a SubRip (.srt) file
2021-08-29 09:48:54 -04:00
# Usage
2021-11-14 13:49:35 -05:00
```
usage: fsub [-h] [-c] [-s MS] [-n] file [file ...]
Fix, edit and clean SubRip (.srt) files.
positional arguments:
file list of input files (they all must be SubRip files)
optional arguments:
-h, --help show this help message and exit
-c, --clean removes subtitles matching regular expressions listed in ~/.config/fsubrc
(this is the default behavior if no other flag is passed)
-s MS, --shift MS shifts all subtitles by MS milliseconds, which may be positive or
negative
-n, --no-html strips HTML tags from subtitles content
```
2021-08-29 09:48:54 -04:00
# Features
- Fixes subtitle numbering
2021-11-14 13:49:35 -05:00
- Converts files to UTF-8 encoding
- Validates file structure
- May remove subtitles containing lines that match any regular expression listed in `~/.config/fsubrc`
- May shift the time of all subtitles
- May strip HTML