Use Smart Filters to create Smart Sharing Labels

Ability to use ‘Smart Filters’ to automatically apply ‘Sharing Labels’ to content.

Effectively this would allow for ‘Smart Sharing Labels’ so newly added content can automatically be shared with relevant users via smart filters.

An example could be…

Match Any…

Collection - is - Disney
Source Folder - is - Volume/Media/Kids Movies
Content Rating - is - PG

Save As - Smart Sharing Label - Kids

Are you aware that you can, after creating the filter list above, multi-select the results (select the first item, shift-click the last) and apply a label to all of them at once? In this case ‘Kids’ could be set as the label.

It probably wouldn’t take any longer than doing a Save As → Smart Sharing Label. Plus, it already exists.

Just want to be sure we’re not reinventing the wheel.

The point is that the smart filter applies to newly added content automatically once the smart filter is saved - exactly how it works with smart collections and smart playlists

Ah, great point. I’m a big fan of advanced filters and smart playlists/collections. Maybe a new smart feature wouldn’t be a bad idea.

Just wondering… what you’re asking for is an option to customize the access restrictions, using the mechanisms of advanced filters.
Applying labels based on a smart filter seems like a technicality / extra layer of complexity.

Do I understand that correctly?

Not sure - would it be any more complex/technical than creating smart collections and playlists?

I don’t know.
Just trying to clarify the feature you’re aiming for (avoiding to lock this to a particular technical implementation). Dynamically writing labels seems like a stepping stone towards a more granular configuration of sharing restrictions.

I’m sorry but I don’t understand what you are asking me to clarify! :grimacing:

Your description seems to focus a lot on assigning labels.
I’m trying to understand if this is actually about those “automatically assigned labels” or if those are simply a means to accommodate the primary target of a more flexible option to customize library access.

The reason I’m asking this is because the step of creating auto-labels which you could then use to restrict access seems like a workaround (unless you want to use those labels elsewhere).

Kometa does a lot of what your are asking, and I use it to place permission labels as well as others (not sure if it can look at folders, but it might):

https://www.metamanager.wiki/en/latest/

My request is to utilise the already available advanced library filters to dynamically assign sharing labels to content in your libraries.

The focus on labels is because that is already available as a way to restrict/allow access to content in your libraries.

Thanks will take a look!

For example, I have a Hallmark Channel Collection. The first part of script looks up a TMDB list (a Hallmark Channel movie list) and the script then assigns “Hallmark Channel” to the genre tag of all the matching movies on my Plex server. The second part of script then creates the smart collection based on that “genre” data and some other “studio” data.

collections:
  Hallmark Channel - not created:
    tmdb_list: https://www.themoviedb.org/list/124970-hallmark-movies
    build_collection: false
    item_genre: Hallmark Channel
    sync_mode: append

  Hallmark Channel Collection:
    smart_filter:
      any:
        genre: 
           - Hallmark Channel
        studio:
           - Muse Entertainment
           - crown media
           - hallmark
      sort_by: title.asc
    label: Age 0
    file_poster: C:\Users\[username]\Kometa\config\assets\Posters\Collections\Hallmark Channel Company.png
    sort_title: 250 - Hallmark Channel Collection

It looks like this:


…and the individual movies now have this genre added to them:

I could easily add this to the script to add a label to all the movies too to set a label for all the matching movies called “Age 14” (you can call it “Kids” or whatever you wish, I just personally like to assign an Age label in the range of: Age 0,3,5,8,10,12,14,16,18,22,25 to all my content so I can change restrictions of a specific user without changing my mind about the appropriateness of a specific title as my kids grow up.):

item_label: Age 14

It would look this this in the script:

collections:
  Hallmark Channel - not created:
    tmdb_list: https://www.themoviedb.org/list/124970-hallmark-movies
    build_collection: false
    item_genre: Hallmark Channel
    item_label: Age 14
    sync_mode: append

  Hallmark Channel Collection:
    smart_filter:
      any:
        genre: 
           - Hallmark Channel
        studio:
           - Muse Entertainment
           - crown media
           - hallmark
      sort_by: title.asc
    label: Age 0
    file_poster: C:\Users\[username]\Kometa\config\assets\Posters\Collections\Hallmark Channel Company.png
    sort_title: 250 - Hallmark Channel Collection

result:

Here’s a link to all the metadata that you can modify using these scripts:

https://www.metamanager.wiki/en/latest/files/item_updates/?h=labels

Thanks that looks very interesting - will have a look at this on my next quiet day! Cheers