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

139 lines
4.1 KiB
YAML
Raw Normal View History

##############################################################################
# Audio Codec 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/audio_codec.html #
##############################################################################
external_templates:
pmm: templates
template_variables:
2022-09-27 06:19:29 +00:00
conditionals:
back_height:
2022-09-27 06:19:29 +00:00
default: 105
conditions:
- style: standard
value: <<standard_value>>
standard_value: 105
style: compact
group: audio_codec
horizontal_offset: 0
horizontal_align: center
vertical_offset: 15
vertical_align: top
2022-10-17 20:55:42 +00:00
back_color: "#00000099"
back_width: 305
pmm: audio_codec/<<style>>/<<key>>
templates:
audio_codec:
default:
regex_<<key>>: <<regex>>
conditionals:
regex:
conditions:
- key: truehd_atmos
2022-10-18 20:54:28 +00:00
value: '(?i)^(?=.*\btrue[ ._-]?hd(\b|\d))(?=.*\batmos(\b|\d))'
- key: dtsx
2022-10-18 20:54:28 +00:00
value: '(?i)\bdts[ ._-]?x(\b|\d)'
- key: plus_atmos
2022-10-18 20:54:28 +00:00
value: '(?i)^(?=.*\b(dd[p+])|(dolby digital plus)\B)(?=.*\batmos(\b|\d))'
- key: dolby_atmos
2022-10-18 20:54:28 +00:00
value: '(?i)\batmos(\b|\d)'
- key: truehd
2022-10-18 20:54:28 +00:00
value: '(?i)\btrue[ ._-]?hd(\b|\d)'
- key: ma
2022-10-18 20:54:28 +00:00
value: '(?i)\bdts[ ._-]?(ma|hd[ ._-]?ma|hd)'
- key: flac
2022-10-18 20:54:28 +00:00
value: '(?i)\bflac(\b|\d)'
- key: pcm
2022-10-18 20:54:28 +00:00
value: '(?i)\bl?pcm(\b|\d)'
- key: hra
2022-10-18 20:54:28 +00:00
value: '(?i)\bdts[ ._-]?(hd)?[ ._-]?(hr|hi|hd|ra)'
- key: plus
2022-10-18 20:54:28 +00:00
value: '(?i)\b(dd[p+])|(dolby digital plus)|(e[ ._-]?ac3)\B'
- key: dtses
2022-10-18 20:54:28 +00:00
value: '(?i)\bdts[ ._-]?es(\b|\d)'
- key: dts
2022-10-18 20:54:28 +00:00
value: '(?i)\bdts(\b|\d)'
- key: digital
2022-10-18 20:54:28 +00:00
value: '(?i)\b(dd)|(ac3)|(dolby)'
- key: aac
2022-10-18 20:54:28 +00:00
value: '(?i)\b(aac|stereo|2[ .]0)(\b|\d)'
- key: mp3
value: '(?i)\bmp3(\b|\d)'
- key: opus
value: '(?i)\bOPUS(\b|\d)'
2022-09-27 06:19:29 +00:00
ignore_blank_results: true
2022-10-01 07:45:58 +00:00
plex_all: true
filters:
- audio_track_title.regex: <<regex_<<key>>>>
- filepath.regex: <<regex_<<key>>>>
2022-09-27 06:19:29 +00:00
overlays:
Dolby-TrueHD-Atmos:
variables: {key: truehd_atmos, weight: 160, standard_value: 189}
template: [name: standard, name: audio_codec]
DTS-X:
variables: {key: dtsx, weight: 150}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
Dolby-Digital-Plus-Atmos:
variables: {key: plus_atmos, weight: 140, standard_value: 189}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
Dolby-Atmos:
variables: {key: dolby_atmos, weight: 130}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
Dolby-TrueHD:
variables: {key: truehd, weight: 120}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
DTS-HD-MA:
variables: {key: ma, weight: 110}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
FLAC:
variables: {key: flac, weight: 100}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
PCM:
variables: {key: pcm, weight: 90}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
DTS-HD-HRA:
variables: {key: hra, weight: 80}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
Dolby-Digital-Plus:
variables: {key: plus, weight: 70}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
DTS-ES:
variables: {key: dtses, weight: 60}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
DTS:
variables: {key: dts, weight: 50}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
Dolby-Digital:
variables: {key: digital, weight: 40}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
AAC:
variables: {key: aac, weight: 30}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
MP3:
variables: {key: mp3, weight: 20}
template: [name: standard, name: audio_codec]
2022-09-27 06:19:29 +00:00
Opus:
variables: {key: opus, weight: 10}
template: [name: standard, name: audio_codec]