jellyfin / jellyfin-plugin-webhook

GNU General Public License v3.0
149 stars 46 forks source link

Filter Item events based on Library by UserFilter #74

Open nothing2obvi opened 3 years ago

nothing2obvi commented 3 years ago

Hello! My Jellyfin setup is a little weird because I basically have 4 copies of the same library but each library uses .STRM files that allow permission for that specific user's Google Drive ID. Anyway, if I have 4 users -- Anne, Bob, Christa, and Dan -- each only with access to their own library, when an episode is added to Bob's library, that episode will only work for Bob.

In the Webhooks plugin settings, I have each user filtered only to themselves (i.e. Bob's webhook only has his name checked). All notification types are checked except Generic, Playback Progress, and Task Completed (using Gotify, as well as Notifiarr to get notifications via Discord).

example

And in the "Notifications" tab in the left sidebar, for "New content added" I have "All users" checked (as in the image below). Screen Shot 2021-10-22 at 10 38 15 PM

With this current setup, when an episode is added to "Bob's Library," all users -- Anne, Bob, Christa, and Dan -- get a notification. whatshappening

However, when an episode is added to "Bob's Library," I actually only want Bob to get a notification because only Bob has access to "Bob's Library." whatidlike

Is there a way to filter it so that users only get "Item Added" notifications when an item is added to a library that they specifically have access to?

Or have I screwed myself over with how I've set up my server? Or am I overlooking something?

Thanks for your help!

(EDIT: It seems I had the "User Data Saved" notification type unchecked too. Not sure if relevant.)

crobibero commented 3 years ago

This method of filtering is currently not enabled, the "ItemAdded" notification doesn't check access as I didn't see this use case.

I'll look into adding this filter when I get a chance.

nothing2obvi commented 2 years ago

Hey thanks for replying. Okay, I see. Yeah it might generally be useful say if you wanted to add media that only a subgroup of all users can access, and you don't want the users who don't have access to get a notification about it. I wonder how this might also apply with parents not wanting their kids to know a certain violent film has been added, etc.

Thank you for considering it!

Cameron-Gregg commented 3 months ago

Yeah Id like to isolate my kids content from the adults collection. Library id or something would be great.

Aydanill commented 3 weeks ago

Yeah hopefully it gets added. There's a lot of use cases and you can try. For example having users be pinged for specific shows getting a new episode with a combination of having a new user with a tag whitelisted.