As per usual, as soon as you ask the question you figure out the answer… For anyone else wanting to do this:
Update the autodl-curl-sonarr.sh script to include the bitmetv cookie by adding "–cookie “uid=YOUR_COOKIE_UID;pass=YOUR_COOKIE_PASS” to the curl command
The line should look like this:
/usr/bin/curl -v --cookie “uid=YOUR_UID;pass=YOUR_PASS” -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://localhost:8989/api/release/push
Set up your autodl.cfg (located here: ~/.autodl/autodl.cfg) to include something like this, either in the global [options] header or for specific [filter]s as you see fit (I setup and use a “Match All” filter).
Add “?uid=YOUR_UID&passkey=YOUR_PASSKEY” (without quotes) after “$(TorrentUrl)” to append your login information:
Update the path to the script and YOUR_UID, YOUR_PASSKEY YOUR_SONARR_API_KEY to the values for your system:
upload-type = exec
upload-command = /path/to/autodl-curl-sonarr.sh
upload-args = “$(TorrentName)” “$(TorrentUrl)?uid=YOUR_UID&passkey=YOUR_PASSKEY” YOUR_SONARR_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.