Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter Item events based on Library by UserFilter #74

Open
nothing2obvi opened this issue Oct 23, 2021 · 4 comments
Open

Filter Item events based on Library by UserFilter #74

nothing2obvi opened this issue Oct 23, 2021 · 4 comments
Labels
feature This PR or Issue requests or introduces a new feature

Comments

@nothing2obvi
Copy link

nothing2obvi commented Oct 23, 2021

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
Copy link
Member

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
Copy link
Author

nothing2obvi commented Oct 29, 2021

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!

@crobibero crobibero changed the title A little confused about user filtering. Filter Item events based on Library by UserFilter Oct 29, 2021
@crobibero crobibero added the feature This PR or Issue requests or introduces a new feature label Oct 29, 2021
@Cameron-Gregg
Copy link

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

@Aydanill
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This PR or Issue requests or introduces a new feature
Projects
None yet
Development

No branches or pull requests

4 participants