sub-renamer

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 1 Imported by: 0

README

Sub-Renamer

English | 简体中文

A CLI tool designed to automatically rename subtitle files corresponding to matched video files.

If this tool is helpful to you, please consider giving it a star. Thank you OwO.

Installation

Using go
$ go install -ldflags "-w -s" github.com/acgtools/sub-renamer@latest
Download from releases

Release page

Quick Start

$ sub-reanmer -h
sub-renamer <video dir> <sub dir>

Usage:
  sub-renamer [flags]

Flags:
  -h, --help               help for sub-renamer
      --log-level string   log level, options: debug, info, warn, error (default "info")
  -v, --version            version for sub-renamer

How to use on windows
  1. Download the zip file and extract it to the folder you’d like.

  2. Open the cmd: you can search for “cmd” in the Windows search bar, then click "Command Prompt"

  3. Copy the path of the folder you just extracted. Input the following command and press enter:

    cd /d "<path you copied>"
    
  4. 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.

    .\sub-renamer.exe "<video path>" "<subtitle path>"
    

Issue

Feel free to create issues to report bugs or request new features.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL