The Script will clean up your library from shitty movies based on the IMDB Rating.
The Script fetches all the movies, you have in the database, then fetches rating from IMDB for every movie and compares the movie rating with the rating set up by User.
I've created this script because I had many lists in my Radarr with rating from 8
for auto-add and monitor, but Radarr rating is very misleading so I've ended up with many shitty movies in my collection.
I recommend running this script every month if you wish to have movies based on real IMDB rating in your collection.
-
Download Latest LTS version of Node.js from here https://nodejs.org/en/ and install it on your computer.
-
Download Visual Studio Code which I recommend but you can use any text editor of your choice to fill all the required constants(options) https://code.visualstudio.com/
-
You can run terminal directly in Visual Studio Code or you can open terminal from explorer or finder.
-
When you are in the terminal and you are in the script folder run
npm install
-
When it will finish installing run
node app.js
to run the script and delete all the shitty movies.
API KEY FROM RADARR
const radarrAPI = 'YOUR_API_KEY'
Option to add movies to exclusions list in Radarr // true
will add exclusions // false
will not add to exclusions
const addExclusion = true;
Option to delete a movies from disk // true
will delete movies from disk // false
will not delete movies from disk
const deleteFiles = true;
Key for https://www.omdbapi.com/ You can find one for free but I will not share it in here, please support the developers
const keyOmdb = 'KEY_TO_OMDB';
All the movies below and equal to this rating are gonna be deleted
const desiredRating = 6;
Url To Your radarr API // Only Domain changes /api/movie/ should stay the same
const radarrUrl = 'https://YOURDOMAIN.COM/api/movie/'