| Crates.io | msort |
| lib.rs | msort |
| version | 0.1.6 |
| created_at | 2025-01-15 19:19:30.014346+00 |
| updated_at | 2025-06-22 10:58:05.309465+00 |
| description | A command line application to sort media files |
| homepage | https://github.com/tomaspavlic/msort |
| repository | https://github.com/tomaspavlic/msort |
| max_upload_size | |
| id | 1518007 |
| size | 106,325 |
msort is a powerful command-line tool designed to organize your movie and TV show files into a folder structure ideal for use with Plex Media Server. It processes file metadata to ensure your media library is clean, consistent, and easy to navigate.
Movies/<Movie Title> (<Year>)/<Movie File>TV Shows/<Show Title>/Season <Number>/<Episode File>Rust programming language installed. Use the Rust toolchain installed.
Install the application via cargo (Rust's package manager):
cargo install msort
msort --input <source_file_path> --base-dir <destination_directory> --api-key
--input (required): Path to the media file--base-dir (required): Path to the directory where organized files will be saved.--dry-run: Preview changes without moving any files.--overwrite: Replace existing files in the destination folder.--verbose: Enable detailed logging for debugging.msort --input ~/Downloads/Media/house.s01e02.mkv --base-dir ~/MediaLibrary
msort --input ~/Downloads/Media/house.s01e02.mkv --base-dir ~/MediaLibrary -vv
The application creates a Plex-compatible folder structure:
Movies/
Inception (2010)/
Inception (2010).mp4
The Matrix (1999)/
The Matrix (1999).mkv
TV Shows/
Breaking Bad/
Season 01/
Breaking Bad - S01E01 - Pilot.mp4
Breaking Bad - S01E02 - Cat's in the Bag.mp4
Season 02/
Breaking Bad - S02E01 - Seven Thirty-Seven.mp4
Contributions are welcome! To contribute:
git checkout -b feature-name.git commit -m 'Add some feature'.git push origin feature-name.This project is licensed under the MIT License.
For questions or support, open an issue on the GitHub repository.