##############################################################################
#                         Aspect Ratio Overlay                               #
#                 Created by Yozora, Bullmoose20, & Sohjiro                  #
#          EDITING THIS FILE MAY CAUSE PULLING NEW UPDATES TO FAIL           #
#           https://kometa.wiki/en/latest/defaults/overlays/aspect           #
##############################################################################

external_templates:
  default: templates
  template_variables:
    default:
      text_<<key>>: <<overlay_name>>
      horizontal_align: center
      vertical_align: bottom
    conditionals:
      vertical_offset:
        default: 15
        conditions:
          - vertical_align: center
            value: 0
          - vertical_align: top
            value: 15
          - vertical_align: bottom
            value: 150
      horizontal_offset:
        default: 15
        conditions:
          - horizontal_align: center
            value: 0
          - horizontal_align: [left, right]
            value: 15
    group: aspect
    font: fonts/Inter-Medium.ttf
    font_size: 63
    back_color: "#00000099"
    back_width: 305
    back_height: 105
    final_name: text(<<text_<<key>>>>)

templates:
  aspect:
    ignore_blank_results: true
    plex_all: true

overlays:
  1.33:
    variables: {key: 1.33, weight: 80}
    template: [name: standard, name: aspect]
    filters:
      aspect.gt: 1.32
      aspect.lt: 1.34
  1.65:
    variables: {key: 1.65, weight: 70}
    template: [name: standard, name: aspect]
    plex_all: true
    filters:
      aspect.gt: 1.64
      aspect.lt: 1.66
  1.66:
    variables: {key: 1.66, weight: 60}
    template: [name: standard, name: aspect]
    plex_all: true
    filters:
      aspect.gt: 1.65
      aspect.lt: 1.67
  1.78:
    variables: {key: 1.78, weight: 50}
    template: [name: standard, name: aspect]
    plex_all: true
    filters:
      aspect.gt: 1.77
      aspect.lt: 1.79
  1.85:
    variables: {key: 1.85, weight: 40}
    template: [name: standard, name: aspect]
    plex_all: true
    filters:
      aspect.gt: 1.84
      aspect.lt: 1.86
  2.2:
    variables: {key: 2.2, weight: 30}
    template: [name: standard, name: aspect]
    plex_all: true
    filters:
      aspect.gt: 2.1
      aspect.lt: 2.3
  2.35:
    variables: {key: 2.35, weight: 20}
    template: [name: standard, name: aspect]
    plex_all: true
    filters:
      aspect.gt: 2.34
      aspect.lt: 2.36
  2.77:
    variables: {key: 2.77, weight: 10}
    template: [name: standard, name: aspect]
    plex_all: true
    filters:
      aspect.gt: 2.76
      aspect.lt: 2.78