Plex-Meta-Manager/defaults/overlays/language_count.yml

55 lines
1.5 KiB
YAML
Raw Normal View History

##############################################################################
2022-10-27 06:39:30 +00:00
# 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 #
2022-10-24 21:01:58 +00:00
# https://metamanager.wiki/en/latest/defaults/overlays/language_count.html #
##############################################################################
external_templates:
pmm: templates
template_variables:
2022-10-27 06:39:30 +00:00
conditionals:
image_key:
default: audio
conditions:
- use_subtitles: true
value: subs
2022-10-24 21:01:58 +00:00
group: language
horizontal_offset: 0
horizontal_align: center
vertical_offset: 30
vertical_align: bottom
2022-10-17 20:55:42 +00:00
back_color: "#00000099"
back_width: 188
back_height: 105
2022-10-27 06:39:30 +00:00
pmm: <<key>>_<<image_key>>
2022-09-27 06:19:29 +00:00
templates:
2022-10-24 21:01:58 +00:00
language:
2022-10-27 06:39:30 +00:00
conditionals:
search_attribute:
default: audio_language
conditions:
- use_subtitles: true
value: subtitle_language
default:
minimum: 2
2022-09-27 06:19:29 +00:00
optional:
2022-10-01 07:45:58 +00:00
- lt
2022-09-27 06:19:29 +00:00
ignore_blank_results: true
2022-10-01 07:45:58 +00:00
plex_all: true
filters:
2022-10-27 06:39:30 +00:00
<<search_attribute>>.count_gte: <<minimum>>
<<search_attribute>>.count_lt: <<lt>>
2022-09-27 06:19:29 +00:00
overlays:
2022-10-27 06:39:30 +00:00
Dual:
variables: {key: dual, weight: 20, lt: 3}
2022-10-24 21:01:58 +00:00
template: [name: standard, name: language]
2022-09-27 06:19:29 +00:00
2022-10-27 06:39:30 +00:00
Multi:
variables: {key: multi, weight: 10}
2022-10-24 21:01:58 +00:00
template: [name: standard, name: language]