r/sonarr • u/CuriousSleeping • 4d ago
solved Script for notifying when Sonarr Series has completed a season
Hey folks, I've been looking for a lightweight way of receiving notifications when the last episode of a season has been downloaded. This is especially useful for when there's lots of anime with episodes that aren't available yet. Using what I gathered from the Sonarr database and with the help of my dear friend Mr. Chatty Jeepetea I wrote a simple script that can be run once a day. It will create a list of episodes that don't have a file, then on the next run compare all episodes that've gotten a file since then and send out a discord notification for each completed series+season combination. This is a first draft so there might be stuff I'm overlooking, but as of now it's working. This is a simple bash script, so no need for additional software. Maybe there's an easier way for this that I don't know of yet?
Since Reddit automatically deletes this post when I paste in the code block I moved it to pastebin instead:
1
1
u/Fritz00015 3d ago
I am using maintainerr for this. sometimes it doesnt work though because tvdb says the season isnt finished even though it is
1
u/shinigamiskiz 3d ago
I have notifications set up to a discord web api in sonarr and seerr … sonar will tell me when it grabs a file and when it completes it or upgrades it
1
u/bred86 4d ago
I swear to god Notifiarr was a thing (never used it)... But it seems I was wrong