/autodl-curl-sonarr

Script to use as upload-command for autodl-irssi to post to Sonarr

Primary LanguageShell

autodl-curl-pvr

Script to use as upload-command for autodl-irssi to post torrents to Lidarr, Radarr or Sonarr.

Obviously you will need autodl-irssi installed and curl then one or all of the following: Lidarr/Radarr/Sonarr

Download autodl-curl-pvr.sh and put it wherever you want. You may need to edit the address for Lidarr/Radarr/Sonarr, by default it is localhost:port. See https://github.com/Sonarr/Sonarr/wiki/API. Make the script executable for the user running autodl-irssi.

Set up your autodl.cfg to include something like this, either in the global [options] header or for specific [filter] sections as you see fit. Update the path to the script and API_KEY to the values for your system. Note the first argument is the PVR set this to "lidarr", "radarr" or "sonarr"

upload-type = exec
upload-command = /path/to/autodl-curl-pvr.sh
upload-args = "radarr" "$(TorrentName)" "$(TorrentUrl)" API_KEY

You can set up autodl-irssi filters to simply match everything and let Sonarr decide what it should download based upon your Sonarr configuration.

Optionally you can set the indexer which we recommend doing under [filter]:

[filter All BTN to Sonarr]
match-sites = btn
upload-command = /home/savagecore/scripts/autodl-curl-sonarr.sh
upload-args = "$(TorrentName)" "$(TorrentUrl)" API_KEY "BroadcastheNet"
upload-type = exec

Note on lidarr support: Lidarr needs api/v1/push/release rather than just api/push/release like radarr/sonarr.