RiffSphere / Collectarr

38 stars 0 forks source link

Collectarr

A Python script for checking your Radarr database and setting up collection lists. Also supports "smart" actor lists based on TMDB.

While Radarr has the tmdb collection id for each movie (that is part of a collection), and allows to quickly setup a collection list for monitoring from the movie page, there is no quick way to do so for all movies. This script will poll Radarr for all movies, get the tmdb collection id, and set up a collection list for it.

The script can also set up lists for actors. To do so, it will check all your movies, get the actors for each movie from TMDB, keep track how many movies your have with each actor, and add a list if that's more than a configured number.

Jump to:

Features:

Requirements:

Getting a TMDB API key: TMDB offers free API keys to anyone with an account. Simply sign up and request a key via your account settings.

Setting up the configuration files

The config folder can be named and placed anywhere on your computer. The directory path can be specified when running the command. If not specified, the script path will be used as config folder.

In the config folder, make a copy of collectarr.conf.example, rename it collectarr.conf and open it with any text editor.

tmdb settings

Radarr settings

Collectarr settings (actions taken in listed order)

Log settings

Movie/collection settings

Actor settings

Installation and Running

Local

Docker Container

docker create \
  --name=collectarr \
  -v <path to data>:/config \
  riffsphere/collectarr

Blacklists

Two files exist in the config directory:

Rootfolder information

The rootfolder is where movies from a list will get added. The same setting will be used for collections and actors. There are 2 options to configure your rootfolder:

Special thanks

Special thanks to RhinoRhys. This script is inspired by his original radarr-collections. Some of his code has been "reused" (aka stolen) for this project, as well as this layout being based on his.

Also thanks to the Radarr project for their amazing tool, and TMDB for the great api.

Feel free to clone and change all you want!

Disclaimer

This tool is provided as-is. You are free to use, edit or distribute it in any way you want. Using the tool is at your own risk. While I will try to fix reported errors, there is no guarantee I will. I can not be held responsible for any results from using this tool. This includes, but is not limited to, messing up your Radarr database, losing data or burning down your house.

Making a Radarr backup before using this tool, and running with dryrun set to True a couple times, is highly suggested. Good luck!