Plex-Meta-Manager/defaults/overlays/language_count.yml
2022-10-27 02:39:30 -04:00

54 lines
1.5 KiB
YAML

##############################################################################
# Audio/Subtitle Language Count Overlay #
# Created by Yozora, Bullmoose20, & Sohjiro #
# Credit to Magic815 for base images #
# EDITING THIS FILE MAY CAUSE PULLING NEW UPDATES TO FAIL #
# https://metamanager.wiki/en/latest/defaults/overlays/language_count.html #
##############################################################################
external_templates:
pmm: templates
template_variables:
conditionals:
image_key:
default: audio
conditions:
- use_subtitles: true
value: subs
group: language
horizontal_offset: 0
horizontal_align: center
vertical_offset: 30
vertical_align: bottom
back_color: "#00000099"
back_width: 188
back_height: 105
pmm: <<key>>_<<image_key>>
templates:
language:
conditionals:
search_attribute:
default: audio_language
conditions:
- use_subtitles: true
value: subtitle_language
default:
minimum: 2
optional:
- lt
ignore_blank_results: true
plex_all: true
filters:
<<search_attribute>>.count_gte: <<minimum>>
<<search_attribute>>.count_lt: <<lt>>
overlays:
Dual:
variables: {key: dual, weight: 20, lt: 3}
template: [name: standard, name: language]
Multi:
variables: {key: multi, weight: 10}
template: [name: standard, name: language]