-
Notifications
You must be signed in to change notification settings - Fork 28
Run Poster script on recently added media
BETA This is going under testing and may not work as intended
If you don't like waiting for the script to run through all your media, you can now use a webhook from Tautulli to run the script whenever a new Film is added to your library.
For this to work you need to be running version 22.01.02 or newer (or running the :latest tag) running on a static IP address. You will also need to have tautulli running for your server.
All config is done inside tautulli.
Open your tautulli webui and go to settings/Notification Agents and click add a new notification agent.
Select webhook from the list.
In Configuration, your webhook URL is http://:port/webhook Webhook method is POST
In Triggers check the box next to Recently Added
In conditions add a condition as follows --Parameter-- changes to Library Name -- Operator-- Changes to is --Value-- changes to your film library name
For data, scroll down until you see Recently added and click on it to expand showing two boxes. Inside the JSON Data box paste the following:
{
"server":"Tautulli",
"title":"{title}"
}
Click save.
That's it, The script should run automatically when new media is added. The script will only run on the one film when used this way rather than running throuh the entire library so it should be reasonably quick taking only a few seconds.
If you only want to run the script when a 4k or HDR film is added you can add the condition logic to do so. Under Conditions add the following: --Parameter -- --Operator-- --Value-- Video Resolution is 4k Video Dynamic Range is hdr
Condition Logic: {1} and ({2} or {3})
This will run the script only when a film is added to your films library AND is 4k OR HDR.
It is now possible to use Radarr's webhooks to run the 4k poster and hide4k scripts when a movie has been imported.
To do this go to your Radarr server and click settings. Under Connect click the plus Icon and select webhook. Name should be Plex-utills Notification Triggers, select only On Import and On Upgrade
For URL enter http://<plex-utills ip>:<port>/webhook
leave method as post.
Click save.
Now when a film is imported Radarr will trigger the scripts to be run automatically. Note that it will only run for that Film and not on the whole library.