This is a custom script for Sonarr/Radarr/Whisparr to inform Tdarr of new/changed/deleted files without relying on filesystem events or frequent disk scanning. Bigger Explanation below.
- Download the script
- install python3 and python3-pip
- Install the Python requirements
pip3 install -r requirements.txt
- Generate a config file using
python3 tdarr_inform.py --setup
- Modify your
[tdarr]/address
inconfig.ini
- Currently this script only works when it is added to Sonarr/Radarr/Whisparr as a Custom Script. There are some future plans that will add cli methods as well as a web service you can run on a separate machine.
- Sonarr/Radarr/Whisparr file paths must be accessible to Tdarr. This script does not currently "translate" paths. This may be added in the future.
- Go to Settings/Connect
- Add
- Custom Script
- Select Import,Upgrade,Rename,Delete(multiple versions of delete)
- Set the path to the script
Tdarr is able to listen to filesystem events and/or scan the filesystem periodically.
When you store your files on a File Server or NAS, and use samba/CIFS, you lose out on filesystem events, requiring Tdarr to be dependent on frequent scans, which for large libraries can waste resources and consume a lot of time. If your applications are able to receive filesystem events, tdarr_inform may be of little help for your setup.
This tool is designed to let Sonarr/Radarr/Whisparr directly communicate with Tdarr, much like Cloudbox/autoscan is able to communicate between Sonarr/Radarr/Whisparr/Lidarr and Plex/Emby/Jellyfin.
Using tools like this allows you to reduce the file scans to 6hours/12hours/daily instead of very frequently.
Adding a direct communication between apps, allows for Tdarr to convert new media more quickly, and often prior to the media server detecting changed files. This can usually help with end-users streaming content from your media server before the content is handled by Tdarr.