r/sonarr 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:

https://pastebin.com/bcXVP7jr

3 Upvotes

10 comments sorted by

1

u/bred86 4d ago

I swear to god Notifiarr was a thing (never used it)... But it seems I was wrong

2

u/CuriousSleeping 4d ago

From what I've seen on Notifiarr's Wiki it doesn't allow for a notification only when an entire season is available. That's why I haven't given it a shot

1

u/bred86 4d ago

so, it does work? First page I get from brave search is a paid app...

2

u/CuriousSleeping 4d ago

It does work and is free as far as I can tell. Here: https://github.com/Notifiarr/notifiarr/blob/main/examples/compose.yml

1

u/bred86 4d ago

oh... Interesting...

Sorry hijacking your thread.

Thank you, btw

1

u/CuriousSleeping 4d ago

No worries 😄

1

u/Aggravating-Depth330 4d ago

I believe a similar functionality is being added to v5

1

u/CuriousSleeping 4d ago

That would be great 😄

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