Clean up video file and folder names by stripping common release metadata and formatting titles consistently.
- Removes common scene metadata like codecs, audio formats, resolutions, and release tags.
- Normalizes separators and brackets in names.
- Keeps the first detected year and formats titles as "Title (Year)".
- Supports dry-run previews before applying renames.
- Python 3.10+ (uses type annotations compatible with 3.10)
MediaRenaming/
Rename.py
media_renaming/
__init__.py
cli.py
constants.py
normalization.py
planner.py
Rename.pyremains as a compatibility entrypoint.- Core logic now lives in small focused modules under
media_renaming/.
Dry-run (default):
python Rename.py "C:\\Path\\To\\Media"Interactive terminal UI (menu-driven):
python Rename.py --interactiveInteractive UI with a preselected folder:
python Rename.py "C:\\Path\\To\\Media" --interactiveApply changes:
python Rename.py "C:\\Path\\To\\Media" --applyModule execution (optional):
python -m media_renaming.cli "C:\\Path\\To\\Media" --applyIf no path is provided, the interactive terminal UI opens automatically.
Input:
Movie.Title.2021.1080p.BluRay.x264.DTS-HD.MA.5.1-FGT.mkvMovie_Title_1992_720p_WEB-DL_x265_AAC_5.1.mkvMovie Title (2021) [1080p] {BluRay} <x264> - FGT.mkv
Output:
Movie Title (2021).mkv
- Video extensions supported:
.mkv,.mp4,.avi,.mov. - Folder names are also normalized after files to avoid path conflicts.
Run without --apply first to review the planned changes.