mintmedia turns messy downloads into a clean library, automatically -- no fuss to set up, nothing extra to run, and built to stay out of your way.
input: Stranger.Things.S04E07.2160p.BluRay.x265.mkv
output: Shows/Stranger Things/Season 04/Stranger Things - S04E07.mkv
Drop a file or folder into the MintDrop folder (typically ~/Downloads/MintDrop) and mintmedia will figure out what it is, rename it cleanly, and move it to your Movies or Shows library - "automagically."
Want to automate your entire media workflow?
Once you've enabled Transmission integration and started the daemon (mintmedia -d), all you have to do is copy a magnet link, and mintmedia handles the rest: queuing the download, organizing the files when it finishes, and sorting them into a library structure ready for media servers like Plex, Infuse, Jellyfin, or any local media player.
mintmedia leans on an old idea: a tool should do one thing, and do it well.
By design, that means keeping things simple:
- No web UI -- everything runs from the command line
- No outside internet connection -- sorting is done entirely from filenames, on your machine
- No database -- state lives in a plain JSONL history log
- Single binary -- one executable, no runtime dependencies to install
Beta software. mintmedia is pre-1.0 -- CLI flags, config format, and defaults may still change between releases. Always use --plan or --dry-run before pointing mintmedia at important files, and check release notes before upgrading.
Installation
mintmedia works natively on both macOS and Linux (x86-64 & arm64):
brew install mtn-man/tap/mintmedia
Go Install
If you'd rather not add a Homebrew tap (or it's not available on your platform), install directly with Go:
go install github.com/mtn-man/mintmedia/cmd/mintmedia@latest
This requires Go 1.25.5 or newer (install Go if you don't have it), and installs to $(go env GOPATH)/bin (or $GOBIN if set) -- make sure that directory is on your PATH. To pin to a specific release instead of the latest commit on main, use a tag in place of @latest, e.g. @v0.1.5.
On Linux, clipboard-based magnet link detection additionally requires a Wayland session with wl-clipboard installed (wl-paste must be on PATH) -- see Transmission Integration.
Quick Start
- Run
mintmedia. A default config will be written to ~/.config/mintmedia/config.toml with sensible defaults (drop folder ~/Downloads/MintDrop, movies and shows libraries under ~/Movies on macOS or ~/Videos on Linux). Edit the config file if you want different paths.
- Drop some media into the drop folder, then preview what mintmedia would do with it before touching anything:
mintmedia --plan
- Happy with the plan? Run
mintmedia again (no flags) to actually process it.
- To run continuously in the background, watching for new files as they arrive:
mintmedia --daemon
How It Works
When mintmedia processes a file or folder, it:
- Finds the main media file by extension (
.mkv, .mp4, etc.), digging into subfolders as needed -- so a season folder, a whole-show dump, or a movie collection all work just like a single file
- Figures out whether it's a movie or a show from the filename
- Parses the title, year, and season/episode information
- Moves everything -- main file and any subtitles -- to the right destination with a clean name
- If the input was a folder and everything moved successfully, sends it to Trash (using whatever trash mechanism your OS provides)
If a subtitle or other accompanying file can't be moved, the main media is still moved and you'll see a warning. The source folder is left in place if anything was left behind.
Use --plan to preview what mintmedia would do without touching anything -- see CLI Reference for the path syntax.
See Media detection for exactly which filename patterns are recognized, and Folder processing for how season packs, movie collections, and mixed folders are handled.
Output naming
Shows are organized by season, with the episode renamed to a clean Show Name - SxxExx format:
input: Breaking.Bad.S03E07.1080p.HEVC.x265-[GROUP].mkv
output: Shows/Breaking Bad/Season 03/Breaking Bad - S03E07.mkv
Movies get their own subdirectory named after the title:
input: Get.Smart.2008.1080p.BluRay.mkv
output: Movies/Get Smart (2008)/Get Smart (2008).mkv
Subtitles and other associated files are renamed to match and moved alongside the main file:
Stranger.Things.S04E07.en.srt → Stranger Things - S04E07.en.srt
Library awareness
mintmedia scans your existing library before choosing a destination. For shows, a new episode that parses as Survivor is routed to an existing Survivor (2000) folder instead of creating a duplicate -- see Show folder matching for the exact rules. For movies, spelling and punctuation variants of a title already in your library (e.g. Leon vs. an existing Léon (1994) folder) are recognized as the same movie, not filed as a new one. Either way, if mintmedia is ever unsure, it won't guess -- it skips the file and reports it so you can sort it manually.
CLI Reference
mintmedia [flags]
| Flag |
Description |
-d / --daemon |
Run continuously, watching for new files |
-p / --process-drop |
Process everything currently in the drop folder (default when no flag is given) |
--process <path> |
Process a specific path -- non-media and empty directories are silently skipped |
--plan[=path] / --dry-run[=path] |
Preview what would happen -- no changes made; omit path to preview the drop folder. Use = to pass a path (--plan=/path, not --plan /path) |
-s / --status |
Check whether the daemon is running |
-S / --stop |
Gracefully stop the running daemon |
--config <path> |
Use a different config file |
-v / --verbose |
Print config summary at startup |
-V / --version |
Show version and exit |
-h / --help |
Show help |
Configuration
The config file lives at ~/.config/mintmedia/config.toml and is created automatically on first run.
The settings you'll actually touch on day one:
| Setting |
Default |
What it does |
drop_folder |
~/Downloads/MintDrop |
Where to look for incoming media |
dest_dir_movies |
~/Movies/Movies (macOS), ~/Videos/Movies (Linux) |
Where processed movies go |
dest_dir_shows |
~/Movies/Shows (macOS), ~/Videos/Shows (Linux) |
Where processed shows go |
done_notification_mode |
per_file |
Sound after processing: per_file, per_job, or off |
Everything else -- log levels, drop-folder settle timing, and more -- is documented inline in config.example.toml, which is the fully annotated reference for every setting. See Configuration reference for destination-directory constraints and NAS/mounted-filesystem timing.
Logs
mintmedia keeps a structured JSONL log of everything it does. The default location depends on your platform:
- macOS:
~/Library/Application Support/mintmedia/history.jsonl
- Linux:
~/.local/state/mintmedia/history.jsonl
If a file ended up somewhere unexpected, or a subtitle was left behind, that's the first place to look. The log location is controlled by history_file in your config (relative paths resolve under state_dir).
Transmission Integration
See Transmission integration for the config and platform requirements needed to enable the hands-free magnet-link-to-library workflow described above.
License
mintmedia is licensed under the GNU General Public License v3.0.