#How to create a collection for Kids stuff?
1 messages · Page 1 of 1 (latest)
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.
So I guess first we need to decide what you think defines "for kids"
there is a lot of conflicting views on this 🤣
animated series ,animated movies, movies with target audience of people under 13 years old
stuff like that 😄
animated is easy enough to do, but how do you define the target audience - using content ratings?
thats the question. i tried making lists with imdb and mdblist with selected age ratings but the results dont look right..
just running a quick test
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
That's kind of the problem - you're trying to automate something that is quite personal about what you deem appropriate
what I would maybe recommend is using the mass_content_rating_update: mdb_commonsense operation which will update all of your content ratings to match https://www.commonsensemedia.org/movie-reviews
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.
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)
yeah your right
hence further filtering by the content rating
can this be finetuned with plex labels as well?
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 🙂
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?
correct
and it would exclude anything that you haven't specifically set as appropriate or whatever 🙂
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?
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"
but if i dont set any label to an item which falls under the other collection settings it would still be included ?
haha, yeah of course, but who would do this 😄
In the above code:
the genre MUST be animation
the label must NOT be "inappropriate"
the content rating MUST have one of the following: the "appropriate" label, or a content rating of "U" or "PG"
so if the content rating is 18, it won't get in unless you give it the "appropriate" label
no problem - it will probably take a bit of tinkering to get it exactly how you want it 👍
yeah, but thats not a problem 😄
I'll close this for now, if you need any more help with this you know where we are
Of course , thank you 🙂
is it necessary that there are already items with the label in your config? when i run it it throws me this error:
yeah you have to have at least one I think
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.
do i have to set anything else to make this work? I added new content which clearly falls in this category, and even tried with the tags, but until next run of PMM it doesnt get added to collection
PMM is not “listening” for changes… it requires you to run PMM to detect and then apply the changes.
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.
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
i was focused on these words: until next run of PMM it doesnt get added to collection
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
nobody?
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
There is a way to do “one must be true from each of these” but i cant remember what it is
[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
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
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
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
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
Yeah, i noticed that intendation gets messed up if you copy the code to discord...
Yep, worked as expected 😄 thank you 😄