#############################################################
#              Dynamic Resolution Collections               #
#         Created by Yozora, Bullmoose20, & Sohjiro         #
#############################################################
#  Call this from your config.yml (Movie or Show)           #
#  If nothing is specified these are the defaults           #
#                                                           #
#    metadata_path:                                         #
#      - git: PMM/resolution                                #
#        template_variables:                                #
#          # Turn the separator collection on/off           #
#          use_separator: true                              #
#          # Sets how the collection is sorted              #
#          sort_by: release.desc                            #
#          # Sets the collection mode of the collection     #
#          collection_mode:                                 #
#          # Sets the value at the start of the sort title  #
#          collection_section: 15                           #
#############################################################

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

templates:
  resolution_dynamic:
    default:
      sort_by: release.desc
    url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/resolution/<<key>>.jpg
    smart_filter:
      sort_by: <<sort_by>>
      any:
        resolution: <<value>>

collections:
  Resolution Collections:
    template:
      - name: separator
        separator: resolution

dynamic_collections:    
  Resolution:
    type: resolution
    title_format: <<key_name>> <<library_type>>s
    template:
      - resolution_dynamic
      - shared
    addons:
      1080:
        - 2k
      480:
        - 144
        - 240
        - 360
        - sd
        - 576
        