#############################################################
#                    Oscars Collections                     #
#         Created by Yozora, Bullmoose20, & Sohjiro         #
#############################################################
#  Call this from your config.yml (Movie only)              #
#  If nothing is specified these are the defaults           #
#                                                           #
#    metadata_path:                                         #
#      - git: PMM/award/oscars                              #
#        template_variables:                                #
#          # Turn the individual year collections on/off    #
#          use_year_collections: true                       #
#          # Sets the sort of the IMDb Search               #
#          imdb_sort: user_rating,desc                      #
#          collection_order: custom                         #
#          # Sets the collection mode of the collection     #
#          collection_mode:                                 #
#          # Sets the value at the start of the sort title  #
#          collection_section: 16                           #
#############################################################

external_templates:
  git: PMM/templates
  template_variables:
    collection_section: 16

templates:
  Oscars:
    default:
      imdb_sort: moviemeter,asc
    allowed_library_types: movie
    summary: Academy Awards (Oscars) Winners for <<key>>
    imdb_list: https://www.imdb.com/search/title/?release_date=<<key>>-01-01,<<key>>-12-31&groups=oscar_winner&sort=<<imdb_sort>>
    url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/oscars/winner/<<key>>.jpg

collections:

  Oscars Best Picture Winners:
    template:
      - name: award
        image: oscars/best_picture_winner
      - name: shared
        sort: Oscars !1
    allowed_library_types: movie
    imdb_list: https://www.imdb.com/search/title/?groups=best_picture_winner
    summary: The Academy Award for Best Picture is one of the Academy Awards presented annually by the Academy of Motion Picture Arts and Sciences since the awards debuted in 1929.

  Oscars Best Director Winners:
    template:
      - name: award
        image: oscars/best_director_winner
      - name: shared
        sort: Oscars !2
    allowed_library_types: movie
    imdb_list: https://www.imdb.com/search/title/?groups=best_director_winner
    summary: The Academy Award for Best Director is one of the Academy Awards presented annually by the Academy of Motion Picture Arts and Sciences since the awards debuted in 1929.

dynamic_collections:
  Oscars Winners Awards:
    type: number
    sync: true
    data:
      starting: current_year-5
      ending: current_year
    title_format: Oscars Winners <<key_name>>
    template:
      - use_year_collections
      - Oscars
      - award
      - shared
