Simple script for renaming external subtitles matching video files. Designed for private usage.
To use you will need only:
- Node(lts/carbon) with npm
$ npm install -g subtitles-matcher
$ match [ options ]
- Install script as global with
npm install -g subtitles-matcher - Put all episodes and subtitles for them in directory
- Open terminal and go to directory
- Run
match -tand rate new filenames - If you like new names run
matchwithout test flag
- -v --video [extension] — Use non-default video extension (Default "mp4")
- -s --subtitles [extension] — Use non-default subtitles extension (Default "srt")
- -l --language [code] — Add language code to the subtitles filename
- --skip-season — Skip season number. Usefull when using without sXXeXX formatting
- -t --test — Printing new names without moving files
- -h --help — Printing help
Scripts ignore video name,
s(\d+)e(\d+)(ex. Sample Show - s99e99.example) as $1 -> season and $2 -> episode(\d+) .+(ex. 01 Sample Show.example) as $1 -> episode