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:
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.
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.
True
|False
] - Add https://
instead of http://
before the server setting when putting the Radarr URL together. only http testedTrue
|False
] - Execute and log information as normally, but don't ask Radarr to make changes. Useful to test actor numbers or see how many collections you can completeTrue
|False
] - Delete all lists currently in Radarr. SHOULD BE USED WITH CARE. Created to clean up your lists if you started manually. Will delete all lists, including IMDB listsTrue
|False
] - Remove blacklisted lists, that were previously added, from Radarr. Only supports remving the list, will not remove movies.True
|False
] - Delete actor lists added by Collectarr (*actorlistnameaddon will be used to determine)True
|False
] - Delete collection lists added by Collectarr (*movielistnameaddon will be used to determine)True
|False
] - Add lists for all collections Radarr has at least 1 movie from, ignoring existing onesTrue
|False
] - Add lists for actors that appear in a lot (actormin) of movies you have, ignoring existings onesFalse
|True
] - Log to console, useful for debugging or dockerTrue
|False
] - Disable all logging if you just don't careTrue
|False
] - Log all movies that are not part of a collectionTrue
|False
] - Log more informationTrue
|False
] - Only scan movies monitored in RadarrTrue
|False
] - Enable the list when added. Should probably be TrueTrue
|False
] - Automatically add movies from the list. Should probably be TrueTrue
|False
] - Monitor movies added by the listTrue
|False
] - Search for movie when addedTrue
|False
] - Only scan movies monitored in RadarrTrue
|False
] - Enable the list when added. Should probably be TrueTrue
|False
] - Automatically add movies from the list. Should probably be TrueTrue
|False
] - Monitor movies added by the listTrue
|False
] - Search for movie when addedFalse
|True
] - Count an actor for a movie if he is listed as (voice)False
|True
] - Count an actor for a movie is he is listed as (uncredited)Local
collectarr.conf.example
and rename it collectarr.conf
, edit collectarr.conf
for your values.python collectarr.py ./config
(./config part can be dropped) to begin.Docker Container
docker create \
--name=collectarr \
-v <path to data>:/config \
riffsphere/collectarr
Two files exist in the config directory:
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 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!
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!