You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Plex-Meta-Manager-Configs/home1800/overlays/audio_flags.yml

238 lines
6.1 KiB

#############################################################
# Audio Flag Overlay #
# Created by home1800 #
# based on PMM/overlays/audio_languages #
#############################################################
# requires {MediaInfo AudioLanguages} in radarr naming #
# or manually add the languages in whatever standard #
# radarr uses in '[]' braces #
# #
# tested with Movies only #
# #
# Call this from your config.yml: #
# If nothing is specified these are the defaults #
# #
# overlay_path: #
# - git: home1800/overlays/audio_language #
# template_variables: #
# # Set episode or season to overlay #
# overlay_level: #
# # Set the horizontal offset for the overlay #
# horizontal_offset: 0 #
# # Set the horizontal align for the overlay #
# horizontal_align: center #
# # Set the vertical offset for the overlay #
# vertical_offset: 30 #
# # Set the vertical align for the overlay #
# vertical_align: bottom #
#############################################################
templates:
AudioLanguage:
optional:
- overlay_level
default:
overlay: <<overlay_name>>
horizontal_offset: 0
horizontal_align: center
vertical_offset: 30
vertical_align: bottom
collection_level: <<overlay_level>>
ignore_blank_results: true
overlay:
name: <<overlay_name>>
file: config/custom-configs/overlays/<<overlay>>.png
group: audio_language
weight: <<weight>>
horizontal_offset: <<horizontal_offset>>
horizontal_align: <<horizontal_align>>
vertical_offset: <<vertical_offset>>
vertical_align: <<vertical_align>>
overlays:
ger-audio:
template:
- name: AudioLanguage
weight: 5
plex_all: true
filter:
filepath.regex: .*\[DE\]\.*
spa-audio:
template:
- name: AudioLanguage
weight: 5
plex_all: true
filter:
filepath.regex: .*\[ES\]\.*
kor-audio:
template:
- name: AudioLanguage
weight: 5
plex_all: true
filter:
filepath.regex: .*\[KO\]\.*
nor-audio:
template:
- name: AudioLanguage
weight: 5
plex_all: true
filter:
filepath.regex: .*\[NB\]\.*
fr-audio:
template:
- name: AudioLanguage
weight: 5
plex_all: true
filter:
filepath.regex: .*\[FR\]\.*
ja-audio:
template:
- name: AudioLanguage
weight: 5
plex_all: true
filter:
filepath.regex: .*\[JA\]\.*
################################
ger+fr-audio:
template:
- name: AudioLanguage
weight: 10
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(FR|DE)[A-Z+]*(FR|DE)[A-Z+]*\]\.*
ger+ja-audio:
template:
- name: AudioLanguage
weight: 10
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(JA|DE)[A-Z+]*(JA|DE)[A-Z+]*\]\.*
ger+kor-audio:
template:
- name: AudioLanguage
weight: 10
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(KO|DE)[A-Z+]*(KO|DE)[A-Z+]*\]\.*
ger+nor-audio:
template:
- name: AudioLanguage
weight: 10
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(NB|DE)[A-Z+]*(NB|DE)[A-Z+]*\]\.*
ger+spa-audio:
template:
- name: AudioLanguage
weight: 10
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(ES|DE)[A-Z+]*(ES|DE)[A-Z+]*\]\.*
################################
eng+ger-audio:
template:
- name: AudioLanguage
weight: 10
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(EN|DE)[A-Z+]*(EN|DE)[A-Z+]*\]\.*
eng+fr-audio:
template:
- name: AudioLanguage
weight: 10
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(EN|FR)[A-Z+]*(EN|FR)[A-Z+]*\]\.*
eng+ja-audio:
template:
- name: AudioLanguage
weight: 10
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(EN|JA)[A-Z+]*(EN|JA)[A-Z+]*\]\.*
eng+kor-audio:
template:
- name: AudioLanguage
weight: 10
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(EN|KO)[A-Z+]*(EN|KO)[A-Z+]*\]\.*
eng+nor-audio:
template:
- name: AudioLanguage
weight: 10
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(EN|NB)[A-Z+]*(EN|NB)[A-Z+]*\]\.*
eng+spa-audio:
template:
- name: AudioLanguage
weight: 10
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(EN|ES)[A-Z+]*(EN|ES)[A-Z+]*\]\.*
################################
eng+ger+ja-audio:
template:
- name: AudioLanguage
weight: 20
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(EN|JA|DE)[A-Z+]*(EN|JA|DE)[A-Z+]*(EN|JA|DE)[A-Z+]*\]\.*
eng+ger+fr-audio:
template:
- name: AudioLanguage
weight: 20
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(EN|FR|DE)[A-Z+]*(EN|FR|DE)[A-Z+]*(EN|FR|DE)[A-Z+]*\]\.*
eng+ger+nor-audio:
template:
- name: AudioLanguage
weight: 20
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(EN|NB|DE)[A-Z+]*(EN|NB|DE)[A-Z+]*(EN|NB|DE)[A-Z+]*\]\.*
eng+ger+kor-audio:
template:
- name: AudioLanguage
weight: 20
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(EN|KO|DE)[A-Z+]*(EN|KO|DE)[A-Z+]*(EN|KO|DE)[A-Z+]*\]\.*
eng+ger+spa-audio:
template:
- name: AudioLanguage
weight: 20
plex_all: true
filter:
filepath.regex: .*\[[A-Z+]*(EN|ES|DE)[A-Z+]*(EN|ES|DE)[A-Z+]*(EN|ES|DE)[A-Z+]*\]\.*