So much happiness when I read this! Custom notification stuff here I come.
Then I took a look at the input fields, the code, the input fields again, the code again, and I couldnāt figure out.
Could you give an example of the data that sonarr passes to the script?
Thanks. Is there an āevent typeā for ānew series addedā? Thatās one Iād make heavy use of.
Need to rearrange my set up so I have one download dir for all tv stuff, then use symlinks for plex to have diff libraries for all the ppl I share with.
But right now Iād have to manually create the symlinks when new series is added. With this, I wouldnāt have to as long as it could call multiple scripts for multiple tags.
Thus Script/tag for Me, Children 1-5 each have their own, Wife has one, and several friends.
Heh, doing something a bit similar myself. Iām taking a stab at āif symlink doesnāt exist, create itā when the Download/Rename events are sent to my script.
@markus101: can tags be included in the environment variables (e.g. Series.Tags)? Like a comma-separated list or something, which a script can then parse further to take different actions depending on the seriesā tag(s).
Iām ok w/ manually setting up whatās already there now, as thatās a one time thing. But when adding stuff in the future . . .
ooohhh
Just had another idea - if I ADD a tag, can it call a script too? And again process multiple tags? That would mean I wouldnāt have to manually do anything but add tags.
9 times out of 10, adding a tag to a series coincides with adding the series itself, no? E.g. the wife or kids asking you to acquire series x or y for them.
So youāll have a new series and e.g. tag it with āwifeā, and then youāll start searching for it.
If tags are passed along to the custom script when something is downloaded, you can immediately act on them and if required do the one-time setup thingy like create a symlinkā¦
(Crossing fingers that adding tags to the environment variables is a small thing to ask ;))
While true, sometimes a friend will ask me to add a series, but Iāve already got it. So if I just add their tag to it, then the symlink can be made for them via script.
And right now, Iām not using tags heavily b/c they donāt have a lot of use for individual users. Plus they didnāt exist when I set up sonarr in the first place, so thereās a lot of series that have none.
Agreed. Iām interesting in using this to possibly do Subtitle renames to match the new name sonarr has. I havenāt seen a location to put a script, etc. in though!
Very happy to see this. i switch to sonarr not a long time ago. (from sickbeard). I used to call a script to do some stuff around subtitle.Base on the example I created an equivalent scrip(to call some software) but I did not find where to put the script or how to configure it in Sonarr