bangumi-sub-renamer
v1.0.1
Published
A cli tool for renaming subtitles to matching episodes.
Downloads
3
Readme
bangumi-sub-renamer
A cli tool for renaming subtitles to matching episodes.
Installation
npm
npm install -g bangumi-sub-renamer
pnpm
pnpm add -g bangumi-sub-renamer
Usage
$ cd [VIDEO_PATH]
# Video files and subtitle files are in the same folder
$ bnm
# Subtitle files are in the sub folder
$ bnm . ./sub
Commands
bnm VIDEO_PATH SUBTITLE_PATH
A cli tool for renaming subtitles to matching episodes.
USAGE
$ bnm [VIDEO_PATH] [SUBTITLE_PATH] [-o <value>] [-m cp|mv]
ARGUMENTS
VIDEO_PATH [default: .] The path where the video files are stored
SUBTITLE_PATH [default: .] The path where the subtitle files are stored
FLAGS
-m, --mode=<option> [default: mv] choose mode between copy and move
<options: cp|mv>
-o, --out=<value> [default: VIDEO_PATH] path(should exist) to output file
DESCRIPTION
A cli tool for renaming subtitles to matching episodes.
EXAMPLES
$ bnm
$ bnm . ./sub/ -m cp
$ bnm . ./sub -o ./sub