##############################################################################
#                      Golden Globes Awards Collections                      #
#                 Created by Yozora, Bullmoose20, & Sohjiro                  #
#                 Credit to maxwelldeux for the Trakt Lists                  #
#          EDITING THIS FILE MAY CAUSE PULLING NEW UPDATES TO FAIL           #
#       https://metamanager.wiki/en/latest/defaults/award/golden.html        #
##############################################################################

external_templates:
  pmm: templates
  template_variables:
    collection_section: 16

translations:
  pmm: translations

collections:
  Golden Globes Best Picture Winners:
    variables:
      key: best_picture
    template:
      - name: shared
        sort: Golden Globes !1
        allowed_libraries: movie
        image: award/golden/best_picture_winner
      - name: arr
      - name: custom
        collection_order: release.desc
      - name: translation
        translation_key: golden_best
    delete_collections_named:
      - Golden Globe Best Motion Pictures
    tmdb_list: 
      - 8191011 # Drama
      - 8191022 # Musical or Comedy
      - 8235497 # Animation

  Golden Globes Best Director Winners:
    variables:
      key: best_director
    template:
      - name: shared
        sort: Golden Globes !2
        allowed_libraries: movie
        image: award/golden/best_director_winner
      - name: arr
      - name: custom
      - name: translation
        translation_key: golden_director
    tmdb_list: 8235502
    
dynamic_collections:
  Golden Globes Awards:
    type: number
    sync: true
    data:
      starting: current_year-5
      ending: current_year
    title_format: Golden Globe <<key_name>>
    template:
      - use_year_collections
      - imdb
      - translation
      - shared
      - arr
      - custom
    template_variables:
      imdb_list:
        default: https://www.imdb.com/search/title/?release_date=<<key-1>>-01-01,<<key-1>>-12-31&groups=golden_globe_winner&sort=<<imdb_sort>>
      imdb_sort:
        default: moviemeter,asc
      image:
        default: award/golden/winner/<<key>>
      translation_key:
        default: golden_year
