English | 简体中文
A CLI tool designed to automatically rename subtitle files corresponding to matched video files.
If this repo is helpful to you, please consider giving it a star (o゜▽゜)o☆ . Thank you OwO.
Random Wink OvO
$ go install -ldflags "-w -s" github.com/acgtools/sub-renamer@latest
$ sub-reanmer -h
sub-renamer <video dir> <sub dir>
Usage:
sub-renamer [flags]
Flags:
-c, --copy copy subtitles after renaming
-h, --help help for sub-renamer
--log-level string log level, options: debug, info, warn, error (default "info")
-v, --version version for sub-renamer
-
Download the zip file and extract it to the folder you’d like.
-
Open the
cmd
: you can search for “cmd” in the Windows search bar, then click "Command Prompt" -
Copy the path of the folder you just extracted. Input the following command and press
enter
:cd /d "<path you copied>"
-
Copy the path of the video and subtitle folder, input the following command, and press
enter
:Caution: Please ensure that the video file path is provided as the first argument.
Since it will rename files in the second parameter, this process is irreversible. Creating backups for video files is otherwise cumbersome due to their large size.
# Rename subtitle files only .\sub-renamer.exe "<video path>" "<subtitle path>" # Using -c will copy subtitle files to the video folder after renaming .\sub-renamer.exe -c "<video path>" "<subtitle path>"
Feel free to create issues to report bugs or request new features.