#Collection creation fails because no correct age rating

1 messages ยท Page 1 of 1 (latest)

tired rapids
#

Hi Guys,

I have a collection targeted to children:

    smart_filter:
          all:
              label.not: nokids
              any:
              - genre: [Animation, Familie]
              - 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
    sort_title: +01_Kids

The Problem is , when I select a content_ratingwhich is not present on the library, the collection will just fail . But maybe later i will have media, with the correct content rating in my library. So is it possible to somehow put the Content Ratings i want in the collection definiton and just ignore them if there are none of it?

peak surgeBOT
#

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.

slim ether
#

I think you can use validate: false to achieve this

#
collections:
  Kids:
    validate: false
    smart_filter:
          all:
              label.not: nokids
              any:
              - genre: [Animation, Familie]
              - 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
    sort_title: +01_Kids
tired rapids
#

thanks

slim ether
#

Let me know if it works @tired rapids

tired rapids
#

Yes of course, but first i need to fix the other problem i got with the new 1.18 :p

normal jetty
#

validate goes inside the smart_filter

#
collections:
  Kids:
    smart_filter:
      validate: false
      all:
        label.not: nokids
        any:
          - genre: [Animation, Familie]
          - 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
    sort_title: +01_Kids
slim ether
#

I knew that ๐Ÿ‘€

slim ether
tired rapids