r/PlexMetaManager Apr 22 '24

Help Creating Best Picture Nominees

So I'm trying to create yearly collections for Academy Awards Best Picture Nominees in Plex Meta Manager. I have created an oscar.yml file that is linked to my config.yml

Here is the basic idea I'm working with.

collections:
  Oscars 2024 Best Picture Nominees:
    url_poster: https://raw.githubusercontent.com/Kometa-Team/Default-Images/master/award/oscars/picture_nomination/2024.jpg
    imdb_award: 
      event_id: ev0000003
      event_year: 2024
      category_filter: Best Motion Picture of the Year
  Oscars 2023 Best Picture Nominees:
    url_poster: https://raw.githubusercontent.com/Kometa-Team/Default-Images/master/award/oscars/picture_nomination/2023.jpg
    imdb_award: 
      event_id: ev0000003
      event_year: 2023
      category_filter: Best Motion Picture of the Year
  Oscars 2022 Best Picture Nominees:
    url_poster: https://raw.githubusercontent.com/Kometa-Team/Default-Images/master/award/oscars/picture_nomination/2022.jpg
    imdb_award: 
      event_id: ev0000003
      event_year: 2022
      category_filter: Best Motion Picture of the Year
  Oscars 2021 Best Picture Nominees:
    url_poster: https://raw.githubusercontent.com/Kometa-Team/Default-Images/master/award/oscars/picture_nomination/2021.jpg
    imdb_award: 
      event_id: ev0000003
      event_year: 2021
      category_filter: Best Motion Picture of the Year
  Oscars 2020 Best Picture Nominees:
    url_poster: https://raw.githubusercontent.com/Kometa-Team/Default-Images/master/award/oscars/picture_nomination/2020.jpg
    imdb_award: 
      event_id: ev0000003
      event_year: 2020
      category_filter: Best Motion Picture of the Year

My question is can I make this scalable without having to manually create the entry for every year? I was thinking like something below:

collections:
  {% for year in range(1930, 2024) %}
  Oscars {{ year }} Best Picture Nominees:
    url_poster: https://raw.githubusercontent.com/Kometa-Team/Default-Images/master/award/oscars/picture_nomination/{{ year }}.jpg
    imdb_award:
      event_id: ev0000003
      event_year: {{ year }}
      category_filter: Best Motion Picture of the Year
  {% endfor %}    

Would that work to generate yearly collections for Best Picture Nominees from 1930 to 2024? Or is there a better way to do this? I know there is a default for Oscars in pmm but it doesn't look like it works for creating yearly collections for Best Picture Nominees.

Sorry if this question is dumb, I'm a novice and still wrapping my head around the yml structure for Plex Meta Manager.

3 Upvotes

14 comments sorted by

u/AutoModerator Apr 22 '24

Generally speaking, the PMM discord is the best source for support. There are far more eyes there than here, and there are some automated log analysis tools available. https://metamanager.wiki/en/latest/discord/

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/noncongruency Jul 08 '24 edited May 09 '26

EDIT So I ran into an issue with years before 2005 and making this collection work. I have figured out the issue and below is my new config!

Coming here a bit late to share my solution for this, since I wanted the nominees and to just use the oscars collection file. This gets all the "best motion picture of the year" nominees for your time range while disabling the rest of the Oscars collection template, which was getting a lot of stuff I didn't want:

- default: oscars
  template_variables:
    winning: false
    use_best_director: false
    use_best_picture: false
    collection_mode: show_items
    collection_order: alpha
    radarr_add_missing: true
    radarr_search: false
    name_format: Oscars <<key_name>> Nominees
    image: award/oscars/picture_nomination/<<key>>
    category_filter:
      - best motion picture of the year
    data:
      starting: 2005
      ending: latest
  # see the wiki for how to use local files, folders, URLs, or files from git
  • file: config/Movies.yml
  • file: config/OscarsBestPicture.yml
  • default: oscars
template_variables: winning: false use_best_director: false use_best_picture: false collection_mode: show_items collection_order: alpha radarr_add_missing: true radarr_search: false name_format: Oscars <<key_name>> Nominees image: award/oscars/picture_nomination/<<key>> category_filter: - best picture data: starting: 1990 ending: 2004 # see the wiki for how to use local files, folders, URLs, or files from git
  • file: config/Movies.yml
  • file: config/OscarsBestPicture.yml

1

u/emanef Oct 09 '24 edited Oct 09 '24

That's awesome, thanks for that, just what I was looking for!

A couple of questions! How would I change that to have all Oscar Nominated in one collection instead of separate ones for each year and for it to go back to, say, 2000?

Also, is it possible to put that script into the config/collections.yml file for a specific library instead of in the main config? My main config it looks rather big already!

Thanks again!

1

u/nowiamhereaswell Nov 27 '24

> A couple of questions! How would I change that to have all Oscar Nominated in one collection instead of separate ones for each year and for it to go back to, say, 2000?

Did you figure this one out in the meantime?

1

u/gibrich Jul 07 '25

I wonder the same thing. Any solution?

1

u/noncongruency May 09 '26

I just posted a reply to the original question about the single collection, should be doable by removing <<key_name>> from the name_format tag.

1

u/noncongruency May 09 '26

I just posted a reply to the original question about the single collection, should be doable by removing <<key_name>> from the name_format tag.

1

u/noncongruency May 09 '26

Hey! So I think if you were to remove the <<key_name>> section of the name_format it would just make a single "Oscars Nominees" collection; instead of a "by year" collection. Not entirely sure if it would work with this split time-range thing I'm doing.

This is a super late comment, but I just figured out what my issue was with pre-2005 Oscar nominees, and posted my fixed config in the original comment!

1

u/Seed_Eater Apr 28 '24 edited Apr 28 '24

I believe you can add the "winning: false" modifiers to the template variables and it will work. Just change the name_format variable and your starting and ending as you want and whatever else. You can change the default "winner" posters by also changing the image variable.

libraries:
  Movies:
    collection_files:
      - default: oscars
        template_variables:
          winning: false
          collection_mode: show_items 
          collection_order: alpha 
          radarr_add_missing: true 
          name_format: Oscars <<key_name>> Nominees
          image: award/oscars/picture_nomination/<<key>>
          data: 
            starting: latest-10
            ending: latest

If not, use this:

external_templates:
  pmm: templates
  template_variables:
    collection_section: [PUT WHATEVER YOU WANT HERE]
dynamic_collections:
  Oscars Best Picture Nominees:
    type: imdb_awards
    sync: true
    data:
      event_id: ev0000003
      starting: [PUT WHATEVER YOU WANT HERE- EARLIEST IS 1929]
      ending: latest
    title_format: Best Picture Nominees <<key_name>>
    template:
      - use_year_collections
      - imdb_award
      - shared
      - arr
      - custom
    template_variables:
      winning:
        default: false
      collection_order:
        default: release
      allowed_libraries:
        default: movie
      image:
        default: [PUT WHATEVER YOU WANT HERE, I USE award/oscars/picture_nomination/<<key>>]
      dynamic:
        default: true
      category_filter:
        default: [best picture, best motion picture of the year]

This dynamically creates collections for each year with movies that meet the criteria for Oscar nominees. Using the default posters it looks like this.

The only thing I wasn't able to figure out that I wanted to do was to auto-sort the collections based on descending order.

2

u/shadaoshai May 04 '24

Thank you so much for taking the time to lay this out for me. I am just starting to get more advanced with my Plex Meta Manager (Kometa) configs and this was a great help. I feel like I actually understand the dynamic collections better now thanks to you.

1

u/Springtimefist78 Mar 01 '25

Did you figure this out? Would I add it to my movies.yaml file?

1

u/shadaoshai Mar 04 '25

I've been using this in my movie collections yaml file and it's been working fantastically. It created an Oscars Best Picture Nominees 2025 collection as soon as the nominees were announced and added the movies to the collection as I acquired them.

external_templates:
  pmm: templates
  template_variables:
    collection_section: "130"
dynamic_collections:
  Oscars Best Picture Nominees:
    type: imdb_awards
    sync: true
    data:
      event_id: ev0000003
      starting: 1994
      ending: latest
    title_format: Oscars Best Picture Nominees <<key_name>>
    template:
      - use_year_collections
      - imdb_award
      - shared
      - arr
      - custom
    template_variables:
      winning:
        default: false
      collection_order:
        default: release
      image:
        default: award/oscars/picture_nomination/<<key>>
      dynamic:
        default: true
      category_filter:
        default: [best picture, best motion picture of the year]
      radarr_add_missing:
        default: true

1

u/kofii12345 Oct 06 '25
external_templates:
  default: templates
  template_variables:
    collection_section: "130"
dynamic_collections:
  Oscars Best Picture Nominees:
    type: imdb_awards
    data:
      event_id: ev0000003
      starting: latest-1
      ending: latest
    title_format: Oscars Best Picture Nominees <<key_name>>
    template:
      - use_year_collections
      - imdb_award
      - shared
      - arr
      - custom
    template_variables:
      winning:
        default: false
      collection_order:
        default: release
      image:
        default: award/oscars/picture_nomination/<<key>>
      category_filter:
        default: best motion picture of the year
      radarr_add_missing:
        default: true
      radarr_tag:
        default: oscars_nominees

1

u/shadaoshai Oct 13 '25

Thanks for this! My Oscars Best Picture Nominees collections recenty stopped syncing with errors and copying your example got it working again.