pünktchen 1409 Posted July 25, 2021 Posted July 25, 2021 @Luke Should it be possible to use the same folder path in two different libraries? e.g. Library1 -> \\Nas\MyMovies and Library2 -> \\Nas\MyMovies If so, what should happen if a user has access to MyMovies in Library1 but not in Library2?
Luke 42083 Posted July 25, 2021 Posted July 25, 2021 Quote Should it be possible to use the same folder path in two different libraries? e.g. Library1 -> \\Nas\MyMovies and Library2 -> \\Nas\MyMovies If the paths used are exactly the same, and if the content types used are exactly the same, then in theory, yes. Quote If so, what should happen if a user has access to MyMovies in Library1 but not in Library2? What method of restriction are you referring to?
pünktchen 1409 Posted July 25, 2021 Author Posted July 25, 2021 1 minute ago, Luke said: What method of restriction are you referring to? User access control in Emby.
Luke 42083 Posted July 25, 2021 Posted July 25, 2021 I would try it out and report your experience. It's just a combination I haven't tried lately.
pünktchen 1409 Posted July 25, 2021 Author Posted July 25, 2021 Access granted takes precedence over access forbidden. My question is if that is intentional, because with file systems it's the other way round. Although i can see a possible use case the way Emby does it.
Luke 42083 Posted July 25, 2021 Posted July 25, 2021 This scenario hasn't been planned or coded for, so in all honestly, the end result that you're seeing is just how the current processing happens to handle it. If you have the same folder in two different libraries but you want to hide one, then restriction is not really the right approach because it's the same content. You can't have two different rules on the same thing. It sounds to me like what's happening here is they don't want to see it in one of the libraries, and they're trying to use restrictions as a means of accommodating that personal preference.
pünktchen 1409 Posted July 25, 2021 Author Posted July 25, 2021 6 minutes ago, Luke said: If you have the same folder in two different libraries but you want to hide one, then restriction is not really the right approach because it's the same content. You can't have two different rules on the same thing. It sounds to me like what's happening here is they don't want to see it in one of the libraries, and they're trying to use restrictions as a means of accommodating that personal preference. You got it right and i feel the same. What would be a better solution?
Deathsquirrel 745 Posted July 25, 2021 Posted July 25, 2021 21 minutes ago, pünktchen said: You got it right and i feel the same. What would be a better solution? You could likely achieve what you want with junction points. That would allow you to put the same content in two different libraries but Emby should see it as two separate locations with different rights. 1
pünktchen 1409 Posted July 25, 2021 Author Posted July 25, 2021 But junction points don't work correctly on non Windows systems in Emby i think?!
Deathsquirrel 745 Posted July 25, 2021 Posted July 25, 2021 (edited) 2 minutes ago, pünktchen said: But junction points don't work correctly on non Windows systems in Emby i think?! Absolutely no idea. If you're on *NIX wouldn't a hard link serve the same purpose? Of course then you would have to link every file you added. That's a pain so NM. Edited July 25, 2021 by Deathsquirrel
pünktchen 1409 Posted July 25, 2021 Author Posted July 25, 2021 I've read somewhere that .Net Core which Emby is using has problems with hard links or junction points.
Luke 42083 Posted July 25, 2021 Posted July 25, 2021 1 hour ago, pünktchen said: You got it right and i feel the same. What would be a better solution? The only thing that comes to mind is making a third library and having just the one folder in it. Then just using library level restrictions rather than sub-folder.
Carlo 4561 Posted July 26, 2021 Posted July 26, 2021 3 hours ago, pünktchen said: @Luke Should it be possible to use the same folder path in two different libraries? e.g. Library1 -> \\Nas\MyMovies and Library2 -> \\Nas\MyMovies If so, what should happen if a user has access to MyMovies in Library1 but not in Library2? If you don't mind me asking why would you want to duplicate the content in two different libs? Would the user have access to both libs at the same time? If so both movies will likely show up in continue rows or in search results. You may be able to use folder based access instead of two libs if planned correctly. https://support.emby.media/support/solutions/articles/44001160108-folder-based-access-control I've tested the situation your asking about and find that permissions on one library can mess up the second library giving you goofy/unexpected results for some things. I know music done this way is a bit funky. PS I have this sort of thing setup for some movies where I have Christmas movies in a separate disc location then my movies. So it is added as it's own mount point to movies and is it's own Christmas library. What I can do before the holiday is using folder access switch the movies from "Movies" to "Christmas" for each user. This way each movies is only present once but can be moved between libs at the click of a button and not need rescanning. Don't know if that helps or not.
pünktchen 1409 Posted July 26, 2021 Author Posted July 26, 2021 Oh it's not me with that situation. It's a user of my VirtualTV plugin and my plugin doesn't follow that granted over forbidden permission rule. That's why i wanted to know if it's itententional or if it works that way by accident and can break at any time before try to adjust my plugin. 2
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now