If you use
autodl-irssi works by monitoring IRC announcements, these happen right as something is uploaded, the script
- First we want to get the App Port and API Key for the applications we are connecting to autodl-irssi, you can find these in Apps Dashboard.
2. Then in the Service Control tab you scroll down till you find Radarr/Sonarr and you copy their App Port and API Key.
3. Once you have this information it is finally time to make the script, You can name it anything but for
4. To start, run the following command, replacing username with your own username:
nano /home/username/autodl-curl-sonarr.sh
Note: This script is identical for both Radarr and Sonarr but requires 2 separate files as the URL in the script is where matches are sent.
5. At the end of this
Replace the bolded port with the information you found in App Dashboard and remove either
Check out our example;
#!/bin/bash title=$1 downloadUrl=$2 apiKey=$3 date=$(date -u +"%Y-%m-%d %H:%M:%SZ") { /usr/bin/curl -i -H "Accept: application/json" -H "Content-Type: application/json" -H "X-Api-Key: $apiKey" -X POST -d '{"title":"'"$title"'","downloadUrl":"'"$downloadUrl"'","downloadProtocol":"torrent","publishDate":"'"$date"'"}' http://127.0.0.1:PORT/USERNAME/sonarr|radarr/api/release/push } &> /dev/null
6. Once you’ve made the relevant changes, paste the code into the SSH terminal and save it by pressing Crtl + X on your keyboard.
7. After you have made the script we will have to allow it to be executed, run this command and remember to replace username with your username.
chmod +x /home/username/autodl-curl-sonarr.sh
Now that we have created this lovely script on your server and given it permission to run, we will need to connect it all together.
8. In ruTorrent open autodl filters in the web interface and create a new filter.
9. In the Action tab choose Run Program and paste the location for the script in the command field.
10. In Arguments paste this replacing
"$(TorrentName)" "$(TorrentUrl)" Radarr/SonarrAPI
11. After you have done this you just leave the other fields blank, you can add resolution filters if you wish. Leave the Match Releases and TV Show/Movie fields empty, that way it will send all to
12. If you are connecting both Sonarr and Radarr, then you must choose 1 tracker per filter otherwise it will not match correctly.
If this was successful, you will see the following when autodl-irssi matches something and sends it to Radarr/Sonarr in the logs