Effortlessly organize and clean your film collection by director, year, and title using IMDb data. Includes tools for merging, quality checking, and more.
- Features
- Project Structure
- Prerequisites
- Installation
- Usage
- Examples
- Troubleshooting
- Contributing
- License
- Support
- Automatic File Sorting: Organizes films into
/Director/ReleaseYear - Title/Film Fileusing IMDb data. - Multi-Format Support: Handles
.mp4,.mkv,.avi,.mov, and more. - Subtitle Handling: Moves and renames
.srtfiles alongside videos. - IMDb Integration: Fetches director, title, and year for accurate sorting.
- File Renaming: Renames files to their official IMDb title.
- Interactive & Automatic Modes: Choose between full automation or manual confirmation.
- Merge & Quality Tools: Merge folders and compare video quality to keep the best version.
automatic_movie_sorter.py— Fully automatic film organizer (IMDb-based)interactive_movie_sorter.py— Interactive organizer with manual confirmationmerge_and_cleanup.py— Merge folders and clean up source after transfermove_qualitycheck.py— Compare and move higher-quality video files
- Python 3.7 or higher
- IMDbPY
Install dependencies with pip:
pip install IMDbPYUse the automatic organizer for hands-off sorting:
python automatic_movie_sorter.pyYou will be prompted for the folder path. The script will:
- Search IMDb for each video file
- Create
/Director/Year - Title/folders - Move and rename both video and matching
.srtsubtitle files
Use the interactive organizer for manual confirmation:
python interactive_movie_sorter.pyYou can confirm or override IMDb results for each film.
Merge one folder into another and optionally delete the source:
python merge_and_cleanup.pyEdit the script to set your source/destination paths as needed.
Compare video files in two locations and keep the highest quality:
python move_qualitycheck.pyRequires mediainfo to be installed.
Before:
Unsorted/
random_website_1993_sch_list.mkv
another_telegram_channel_munich2005.mp4
2017_Dunkirk.avi
After:
Sorted/
Steven Spielberg/
1993 - Schindler's List/Schindler's List.mkv
2005 - Munich/Munich.mp4
Christopher Nolan/
2017 - Dunkirk/Dunkirk.avi
Interactive Prompt Example:
Title: Schindler's List
Director: Steven Spielberg
Release Year: 1993
Is this correct? [Y/n]:
- Ensure you have a stable internet connection for IMDb lookups.
- If you get errors about missing modules, re-run
pip install IMDbPY. - For video quality checking, install
mediainfo(e.g.,brew install mediainfoon macOS). - If you encounter permission errors, run the script with appropriate access or move files to a user-writable directory.
Contributions, bug reports, and feature requests are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License. If the LICENSE file is missing, please contact the maintainer.
For help, open an issue on GitHub or contact the repository maintainer.