Custom Scripts & Tags

Was looking over Run custom scripts (Connection) again, and looking at the wiki, and still don’t see any way to run a script on ‘change series tag’

Is that currently possible?

If not, is it on the drawing board?

This is something that could actually make me learn Python finally. :wink:

Thanks guys!

:smile:

No its not possible, custom scripts are on only on download or rename, similar to other notification channels.

Why would you want to run a script when the tag is changed?

If you look thru the thread I linked, I mentioned it.

I share my stuff w/ all my kids, via plex. But I have NO desire to see their shows, and they don’t like mine.

So I dump everything into /media/video/tv

But I symlink from there into /media/video/tv.personal/Me & …/Kid1 & …/Wife etc.

If I could use tags from sonarr to automagically run scripts to create symlinks, or delete symlinks, that would be much easier than manually doing it.

I’m sure others could find other things to do with them.

I could see a script being triggered after a series is added, but triggering a notification when a tag is changed seems like a use case for plugin system (which we don’t want to commit to).

If tags could be set when a series is added and notifications could be sent when a series is added would that cover your use case?

Mostly.

Would definetly cut down on the work.

It would skip the cases of ‘I already have that show, but now Kid2 wants it too’. In my version, I’d just add Kid2 tag, and that would call the script to add a symlink.

I’m not sure how the flags that would allow calling scripts is the same as plug in system.

Honestly, this is really the first useful thing I’ve seen for tags at all. Nto that others don’t use them.

I mean it in the sense there would be a bunch of functionality tied to a connection. Seems like we’re getting really close to a plugin system handled through an external script instead of a more integrated solution.

This really sounds like a 1% feature here, beyond your very specific use case I don’t see a lot of use for something so streamlined and it starts to open up a can of worms, if we do it here should we do it for other internal actions, starting a search, after a failed search and on goes the list.

You could have a cron job that hits the Sonarr API and pulls in the series and tags then applies the proper symlinks.

Hadn’t thought of that.

Thanks for the idea. :slight_smile:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.