#How to create a collection for Kids stuff?

1 messages · Page 1 of 1 (latest)

dense cobalt
#

I want to create a collection for Movies and Series for Kids, but i kind of struggle in how to do this.
Can someone help me out?

dim ingotBOT
#

Please complete #938455615741775902 and someone from the community or one of our <@&938443185347244033> members will respond when they're available.

Including the meta.log from the beginning is a huge help use !logs for more information.

steel patio
#

So I guess first we need to decide what you think defines "for kids"

#

there is a lot of conflicting views on this 🤣

dense cobalt
#

animated series ,animated movies, movies with target audience of people under 13 years old

#

stuff like that 😄

steel patio
#

animated is easy enough to do, but how do you define the target audience - using content ratings?

dense cobalt
#

thats the question. i tried making lists with imdb and mdblist with selected age ratings but the results dont look right..

steel patio
#

just running a quick test

dense cobalt
#

i want create a collection of stuff children from 2 years until 12,13 years can watch without anyone being worried that there is something inside the collection which could be not suited for kids

#

i tried for example in mdblist to create a list with entries with an age rating of up to 8 years and it shows apollo 11 and star wars inside the list , which both are clearly not suited for 8 year old kids

steel patio
#

That's kind of the problem - you're trying to automate something that is quite personal about what you deem appropriate

#

And then you can create a collection based on the content_rating to include only specific ages

#

but again they deem Star Wars appropriate for 7/8 year olds

#

so you could run that operation and then create a collection which only includes animated movies.

#

some of them they say is 12, so I guess they base it on what is in the movie

#

and it's parents who set the ratings based on votes.

dense cobalt
#

hmm

#

you said animated movies/series are easy to do. How can they be done?

steel patio
#
 collections:
  Animated Movies:
    smart_filter:
      all:
        genre: Animation
#

you can furthen this to include your content ratings (I don't know what options you have in Plex to check, but)

 collections:
  Animated Movies:
    smart_filter:
      all:
        genre: Animation
        any:
          content_rating: [U, PG]  #this would need tailored to your library
#

but just because something is animated doesn't mean it's kid friendly (Family Guy comes to mind)

dense cobalt
#

yeah your right

steel patio
#

hence further filtering by the content rating

dense cobalt
#

can this be finetuned with plex labels as well?

steel patio
#

sure

#

would you want to use plex labels to include or exclude stuff?

#

I'm guessing exclude?

#
 collections:
  Animated Movies:
    smart_filter:
      all:
        genre: Animation
        label.not: inappropriate
        any:
          content_rating: [U, PG]  #this would need tailored to your library
#

using the above, you can add an inappropriate label and it will be excluded

#

and as it is a smart collection, you will instantly see the results, you don't need to keep running PMM to update it 🙂

dense cobalt
#

thank you , i will play around with these a bit 😄 one question regarding labels: if i want to use labels the other way around, so to include something i would use label instead of label.not?

steel patio
#

correct

#

and it would exclude anything that you haven't specifically set as appropriate or whatever 🙂

dense cobalt
#

okay thanks . is it also possibly for example in doing it like you described to exclude things i dont want but also include optional things i want to additionally add to that collection?

steel patio
#

sure

#
 collections:
  Animated Movies:
    smart_filter:
      all:
        genre: Animation
        label.not: inappropriate
        any:
          content_rating: [U, PG]  #this would need tailored to your library
          label: appropriate
#

so anything you specify "inappropriate" is left out, and anything you specify "appropriate" is included 🙂

#

the issue there would be if you gave something both the "inappropriate" and "apprioriate" labels lol 😄

#

idk what Plex would do, I think the inappropriate would take priority

#

or it would just say "dunno what to do here, bye"

dense cobalt
#

but if i dont set any label to an item which falls under the other collection settings it would still be included ?

dense cobalt
steel patio
#

so if the content rating is 18, it won't get in unless you give it the "appropriate" label

dense cobalt
#

perfect 😄

#

thanks for your help, you saved my day 😄

steel patio
#

no problem - it will probably take a bit of tinkering to get it exactly how you want it 👍

dense cobalt
#

yeah, but thats not a problem 😄

steel patio
#

I'll close this for now, if you need any more help with this you know where we are

dense cobalt
#

Of course , thank you 🙂

dense cobalt
#

is it necessary that there are already items with the label in your config? when i run it it throws me this error:

steel patio
#

yeah you have to have at least one I think

dim ingotBOT
#

This post has been marked as Resolved and will be closed in one hour.

If you require further assistance on this issue, you can send another message in this post to re-open it.

If you require further support that is unrelated to this post, please start a new post and do not re-open this one.

Thanks for using Plex Meta Manager.

dense cobalt
boreal nacelle
#

PMM is not “listening” for changes… it requires you to run PMM to detect and then apply the changes.

kindred jasper
#

Pmm can create smart filters that are based on tags that PMM creates; those won’t auto-update. If the smart filter is based on things that plex sees lIke resolution they will.

steel patio
#

This should have worked

#

the genre and content rating are things that Plex sees, and the labels are things that Thunder has to specify. So if they have specified the appropriate label and the item has the Animation genre, it should immediately appear in the collection without the need to run PMM.

        genre: Animation
        label.not: inappropriate
        any:
          content_rating: [U, PG]  #this would need tailored to your library
          label: appropriate
boreal nacelle
#

i was focused on these words: until next run of PMM it doesnt get added to collection

dense cobalt
#

Sorry , my bad i had a typo .. thats why it did not work..

#

but i ran into an other problem.. i am trying to replicate this in PMM, but it doesnt work. Always says duplicate key found:

#
    smart_filter:
      all:
        label.not: nokids
        any:
          genre: [Animation, Family]
        any:
          content_rating: [4, 5, 6, 7, 8, 9, 10]  #this would need tailored to your library
          label: yeskids
    url_poster: https://theposterdb.com/api/assets/241009/view
    collection_mode: hide_items```
#

so i basically want to have a collection which genre is either family or animation and with ratings between 4 and 10 or label is yeskids

dense cobalt
#

nobody?

boreal nacelle
#

When you run this, what shows up in meta.log?

#

Please attach the meta.log from when this runs to see what might be the issue

steel patio
#

There is a way to do “one must be true from each of these” but i cant remember what it is

dense cobalt
#
[2022-09-05 06:32:11,578] [meta.py:401]               [INFO]     |                              Loading Metadata File: config/Movies.yml                              |
[2022-09-05 06:32:11,578] [meta.py:401]               [INFO]     |====================================================================================================|
[2022-09-05 06:32:11,594] [library.py:141]            [ERROR]    | YAML Error: while constructing a mapping                                                           |
                                                                 |         in "/config/Movies.yml", line 56, column 9
                                                                 |       found duplicate key "any" with value "ordereddict([('content_rating', [4, 5, 6, 7, 8, 9, 10]), ('label', 'yeskids')])" (original value: "ordereddict([('genre', ['An
imation', 'Family'])])")
                                                                 |         in "/config/Movies.yml", line 59, column 9
                                                                 |
                                                                 |       To suppress this check see:
                                                                 |           http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

#

this is from meta.log

steel patio
#

This is expected as you have two any at the same level

#

can you try:

Kids:
    smart_filter:
      all:
        label.not: nokids
        - any:
          genre: [Animation, Family]
        - any:
          content_rating: [4, 5, 6, 7, 8, 9, 10]  #this would need tailored to your library
          label: yeskids
    url_poster: https://theposterdb.com/api/assets/241009/view
    collection_mode: hide_items

or

Kids:
    smart_filter:
      all:
        label.not: nokids
        any:
          - genre: [Animation, Family]
          - content_rating: [4, 5, 6, 7, 8, 9, 10]  #this would need tailored to your library
          label: yeskids
    url_poster: https://theposterdb.com/api/assets/241009/view
    collection_mode: hide_items
#

I'm hoping it's one of those

dense cobalt
#

The first one gives ```[2022-09-05 08:00:47,750] [library.py:141] [ERROR] | YAML Error: while parsing a block mapping |
| in "/config/Movies.yml", line 55, column 9
| expected <block end>, but found '-'
| in "/config/Movies.yml", line 56, column 9


The second one gives :```[2022-09-05 08:03:08,547] [library.py:141]            [ERROR]    | YAML Error: while parsing a block collection                                                       |
                                                                 |         in "/config/Movies.yml", line 58, column 11
                                                                 |       expected <block end>, but found '?'
                                                                 |         in "/config/Movies.yml", line 60, column 11
#

also according to YAML Validators both are incorrect YAML

steel patio
#
collections:
  Kids:
    smart_filter:
      all:
        label.not: nokids
        any:
          - content_rating: [4, 5, 6, 7, 8, 9, 10]  #this would need tailored to your library
          - genre: [Animation, Family]
          - label: yeskids
    url_poster: https://theposterdb.com/api/assets/241009/view
    collection_mode: hide_items
#

I'm not sure this will work how I expect it to

dense cobalt
#
Kids:
  smart_filter:
        all:
            label.not: nokids
            any:
            - genre: [Animation, Family]
            - content_rating: [4, 5, 6, 7, 8, 9, 10]  #this would need tailored to your library
              label: yeskids
  url_poster: https://theposterdb.com/api/assets/241009/view
  collection_mode: hide_items

Now it works, intendation was wrong

steel patio
#

I blame your initial example 😛

#

let me know if it works

dense cobalt
dense cobalt