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

167 lines
5 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 #
2024-01-05 21:06:39 +00:00
# https://metamanager.wiki/en/latest/defaults/overlays/audio_codec #
##############################################################################
external_templates:
pmm: templates
template_variables:
default:
standard_value: 105
style: compact
horizontal_align: center
vertical_align: top
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>>
vertical_offset:
default: 15
conditions:
- vertical_align.exists: false
value: 150
- vertical_align: center
value: 0
- vertical_align: top
value: 15
- vertical_align: bottom
value: 30
horizontal_offset:
default: 15
conditions:
- horizontal_align: center
value: 0
- horizontal_align: [left, right]
value: 15
2023-02-21 20:30:26 +00:00
pmm:
conditions:
- file.exists: false
2023-08-14 15:36:54 +00:00
file_<<key>>.exists: false
2023-02-21 20:30:26 +00:00
url.exists: false
2023-08-14 15:36:54 +00:00
url_<<key>>.exists: false
2023-02-21 20:30:26 +00:00
git.exists: false
2023-08-14 15:36:54 +00:00
git_<<key>>.exists: false
2023-02-21 20:30:26 +00:00
repo.exists: false
2023-08-14 15:36:54 +00:00
repo_<<key>>.exists: false
2023-02-21 20:30:26 +00:00
value: audio_codec/<<style>>/<<key>>
group: audio_codec
vertical_offset: 15
2022-10-17 20:55:42 +00:00
back_color: "#00000099"
back_width: 305
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
value: '(?i)\bdts[ ._-]?x\b'
- key: plus_atmos
value: '(?i)^(?=.*\b((dd[p+])|(dolby[ ._-]digital[ ._-]plus)|(e[ ._-]?ac3)\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-12-12 22:00:30 +00:00
value: '(?i)\bdts[ ._-]?(hd[ ._-])?(ma|xll|hd)(\b|\d)(?![ ._-]hra)'
- 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-12-12 22:00:30 +00:00
value: '(?i)\bdts[ ._-]?(hd[ ._-])?(hr|hra|hi|ra)(\b|\d)'
- key: plus
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-12-12 22:00:30 +00:00
value: '(?i)\b(dd)|(ac3)|(dolby)(\b|\d)'
- key: aac
2022-12-12 22:00:30 +00:00
value: '(?i)\b(aac|stereo|2\.0)\b'
- key: mp3
value: '(?i)\bmp3(\b|\d)'
- key: opus
2022-12-12 22:00:30 +00:00
value: '(?i)\b(?<!-)OPUS(\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]