Seiri is a command line utility that connects to put.io and organizes your movie folders by genre using TMDB API.
- Connects to your put.io account using OAuth token
- Retrieves all folders from your put.io account
- Searches each folder name in TMDB to find the movie's genre
- Downloads each folder to a genre-specific directory on your local machine
- Cleans up movie titles before searching to improve match accuracy
- Supports dry-run mode to preview organization without downloading
- Caches genre information to reduce API calls
- Saves configuration for easy repeated use
- Python 3.6+
- put.io OAuth token
- TMDB API key
- Clone this repository:
git clone https://github.com/yourusername/seiri.git
cd seiri
- Install the package:
pip install -e .
This will make the seiri command available globally.
- Clone this repository:
git clone https://github.com/yourusername/seiri.git
cd seiri
- Install required dependencies:
pip install requests
- Run the script:
python seiri.py
Before using Seiri, you need to set up your put.io OAuth token and TMDB API key:
- Get a put.io OAuth token from your put.io account settings
- Get a TMDB API key by registering for an account and requesting an API key
Run the setup command:
seiri --setup
or
python seiri.py --setup
This will prompt you for your put.io OAuth token, TMDB API key, and the destination directory where you want to organize your movies.
seiri --list
seiri
seiri --dry-run
seiri --token YOUR_TOKEN --tmdb-key YOUR_KEY --dest /path/to/movies
- Seiri connects to your put.io account and retrieves all folders
- For each folder, it cleans up the name by removing common filename patterns (resolution, year, codec, etc.)
- It searches the cleaned name in TMDB to find the corresponding movie
- It extracts the primary genre (first listed genre) for the movie
- It creates a genre folder in your destination directory if it doesn't exist
- It downloads the folder and all its contents to the appropriate genre folder
MIT