From 981474499c2ee7731651e3194e79b2fa8a70b91c Mon Sep 17 00:00:00 2001 From: Maks Snegov Date: Wed, 18 Nov 2026 20:03:43 -0700 Subject: [PATCH] Add README --- README.md | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/README.md b/README.md index e69de29..55a4575 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,56 @@ +# movie-renamer + +Parses messy scene-release filenames (movies/episodes) into structured +chunks and renames them into a clean, canonical form. + +``` +The.Walking.Dead.S04E06.Live.Bait.1080p.WEB-DL.Rus.Eng.HDCLUB.mkv +``` + +parses into `name`, `season`, `episode`, `episode_name`, `resolution`, +`quality`, `language`, etc., then reassembles them in a fixed order. + +## Usage + +``` +renamer.py parse TARGET # print parsed chunks, don't touch files +renamer.py rename TARGET # rename files in place +``` + +`TARGET` is a single file or a directory (processed recursively). +Only `.mkv`, `.avi`, `.ts` files are touched. + +### Options + +``` +--set TYPE=VALUE override a parsed chunk (repeatable) +--season N number episodes E01, E02, ... across a directory +-v, --verbose debug logging +``` + +## Examples + +Fix a title the parser can't fully make sense of: + +``` +$ renamer.py rename --set name=Vikings ./raw/ +``` + +Number a batch of episode files as season 1, forcing the show name: + +``` +$ renamer.py rename --season 1 \ + --set name=Prizrak.v.dospexax.Sindrom.odinochki ./season1/ + +Prizrak...(01.serija.iz.52).2004.x264.BDRip.(1080p).mkv + -> Prizrak.v.dospexax.Sindrom.odinochki.S01E01.2004.1080p.BDRip.x264.mkv +Prizrak...(02.serija.iz.52).2004.x264.BDRip.(1080p).mkv + -> Prizrak.v.dospexax.Sindrom.odinochki.S01E02.2004.1080p.BDRip.x264.mkv +``` + +## Development + +``` +pip install -r requirements-dev.txt +pytest +```