#############################################################
#                     BAFTA Collections                     #
#         Created by Yozora, Bullmoose20, & Sohjiro         #
#     Credit to pjcob & maxwelldeux for the Trakt Lists     #
#############################################################
#  REQUIRES TRAKT AUTHENTICATION                            #
#  https://metamanager.wiki/en/latest/config/trakt.html     #
#                                                           #
#  Call this from your config.yml (Movie only)              #
#  If nothing is specified these are the defaults           #
#                                                           #
#    metadata_path:                                         #
#      - git: PMM/award/bafta                               #
#        template_variables:                                #
#          # Turn the individual year collections on/off    #
#          use_year_collections: true                       #
#          # Sets the collection order of the collection    #
#          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:
  BAFTA:
    allowed_library_types: movie
    summary: <<key>> BAFTA awards
    trakt_list: https://trakt.tv/users/pjcob/lists/<<key>>-bafta
    url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/award/bafta/<<key>>.jpg

collections:
  BAFTA Best Films:
    template:
      - name: award
        image: bafta/winner
      - name: shared
        sort: BAFTA !
    allowed_library_types: movie
    trakt_list_details: https://trakt.tv/users/maxwelldeux/lists/bafta-award-best-film

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