mirror of
https://github.com/SinTan1729/movie-rename.git
synced 2024-12-25 19:58:36 -06:00
A simple tool to rename movies, written in Rust.
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
movie-rename
A simple tool to reame movies, written in Rust.
This is made mostly due to mnamer not having support for director's name, and partly because I wanted to try writing something useful in Rust.
The expected syntax is:
movie_rename <filename(s)> [--dry-run] [--directory] [--help]
- There needs to be a config file names movie_rename.conf in your $XDG_CONFIG_HOME.
- It should consist of two lines. The first line should have your TMDb API key.
- The second line should have a pattern, that will be used for the rename.
- In the pattern, the variables need to be enclosed in {{}}, the supported variables are
title
,year
anddirector
. - Default pattern is
{title} ({year}) - {director}
. Extension is always kept. - Passing
--directory
assumes that the arguments are directory names, which contain exactly one movie and optionally subtitles.
I plan to add more variables in the future. Support for TV Shows will not be added, since tvnamer does that excellently.