1. Home
  2. Knowledge Base
  3. Applications
  4. Sonarr/Radarr
  5. Sonarr/Radarr-autodl-irssi script

If you use Sonarr or Radarr to download movies and TV shows automatically and would like the download to be faster, perhaps to be there on the early seed or you just want to wait less before watching, you can do so by making autodl-irssi in ruTorrent work together with Sonarr and Radarr.

autodl-irssi works by monitoring IRC announcements, these happen right as something is uploaded, the script then sends these announcements as soon as they are published to Sonarr/Radarr to check if it matches anything currently monitored and not downloaded. I will attempt to guide you through setting up said script, courtesy and credit to Tawm.

  1. 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 the sake of this guide we will name it autodl-curl-sonarr.sh

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 script you will see:|radarr/api/release/push
Replace the bolded port with the information you found in App Dashboard and remove either sonarr or radarr as well as the | as this is just a separator used as a visual example.

Check out our example;


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"'"}'|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 Radarr/SonarrAPI with your api key plainly, the “$(TorrentName)” and “$(TorrentUrl)” is an autodl filter that allows it input that info into the script we just made. For example;

"$(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 Sonarr or Radarr. Don’t worry it will only download if it is a match for a monitored Movie/TV Show

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

Was this article helpful?

Related Articles


Please add bugs found in QuickBox Pro using this template:

Bug Report
Select Bug Report as the issue template

Please add feature requests for application inclusion in QuickBox Pro using this template:

Application Feature Request
Select Application Feature Request as the issue template

Please add feature requests for general QuickBox Pro using this template:

Select General Feature Request as the issue template
Select General Feature Request as the issue template

Viewing issues as well as feature requests does not require an account.

You will need to create an account on our Lab in order to post both Issues as well as Feature Requests.
You can register an account here if you do not already have one.

We look forward to your reports as well as your ideas and suggestions for ongoing developments to the QuickBox Pro software!

The QuickBox Pro Community Appreciation Day Event Sale is in full effect.
Get your savings on!