2022-10-17 06:48:08 +00:00
|
|
|
##############################################################################
|
|
|
|
# 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 #
|
2022-10-17 06:48:08 +00:00
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
external_templates:
|
|
|
|
pmm: templates
|
|
|
|
template_variables:
|
2023-01-24 16:49:21 +00:00
|
|
|
default:
|
|
|
|
standard_value: 105
|
|
|
|
style: compact
|
|
|
|
horizontal_align: center
|
|
|
|
vertical_align: top
|
2022-09-27 06:19:29 +00:00
|
|
|
conditionals:
|
2022-10-17 06:48:08 +00:00
|
|
|
back_height:
|
2022-09-27 06:19:29 +00:00
|
|
|
default: 105
|
|
|
|
conditions:
|
|
|
|
- style: standard
|
|
|
|
value: <<standard_value>>
|
2023-01-24 16:49:21 +00:00
|
|
|
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>>
|
2022-10-17 06:48:08 +00:00
|
|
|
group: audio_codec
|
|
|
|
vertical_offset: 15
|
2022-10-17 20:55:42 +00:00
|
|
|
back_color: "#00000099"
|
2022-10-17 06:48:08 +00:00
|
|
|
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))'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: dtsx
|
2022-11-15 07:00:59 +00:00
|
|
|
value: '(?i)\bdts[ ._-]?x\b'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: plus_atmos
|
2024-01-02 13:22:23 +00:00
|
|
|
value: '(?i)^(?=.*\b((dd[p+])|(dolby[ ._-]digital[ ._-]plus)|(e[ ._-]?ac3)\b))(?=.*\batmos(\b|\d))'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: dolby_atmos
|
2022-10-18 20:54:28 +00:00
|
|
|
value: '(?i)\batmos(\b|\d)'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: truehd
|
2022-10-18 20:54:28 +00:00
|
|
|
value: '(?i)\btrue[ ._-]?hd(\b|\d)'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: ma
|
2022-12-12 22:00:30 +00:00
|
|
|
value: '(?i)\bdts[ ._-]?(hd[ ._-])?(ma|xll|hd)(\b|\d)(?![ ._-]hra)'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: flac
|
2022-10-18 20:54:28 +00:00
|
|
|
value: '(?i)\bflac(\b|\d)'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: pcm
|
2022-10-18 20:54:28 +00:00
|
|
|
value: '(?i)\bl?pcm(\b|\d)'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: hra
|
2022-12-12 22:00:30 +00:00
|
|
|
value: '(?i)\bdts[ ._-]?(hd[ ._-])?(hr|hra|hi|ra)(\b|\d)'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: plus
|
2023-12-20 19:54:13 +00:00
|
|
|
value: '(?i)\b(dd[p+])|(dolby[ ._-]digital[ ._-]plus)|(e[ ._-]?ac3)\b'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: dtses
|
2022-10-18 20:54:28 +00:00
|
|
|
value: '(?i)\bdts[ ._-]?es(\b|\d)'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: dts
|
2022-10-18 20:54:28 +00:00
|
|
|
value: '(?i)\bdts(\b|\d)'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: digital
|
2022-12-12 22:00:30 +00:00
|
|
|
value: '(?i)\b(dd)|(ac3)|(dolby)(\b|\d)'
|
2022-10-17 06:48:08 +00:00
|
|
|
- key: aac
|
2022-12-12 22:00:30 +00:00
|
|
|
value: '(?i)\b(aac|stereo|2\.0)\b'
|
2022-10-17 06:48:08 +00:00
|
|
|
- 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:
|
2022-10-17 06:48:08 +00:00
|
|
|
- audio_track_title.regex: <<regex_<<key>>>>
|
|
|
|
- filepath.regex: <<regex_<<key>>>>
|
2022-09-27 06:19:29 +00:00
|
|
|
|
|
|
|
overlays:
|
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
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
|
|
|
|
2022-10-17 06:48:08 +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
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
Dolby-Atmos:
|
|
|
|
variables: {key: dolby_atmos, weight: 130}
|
|
|
|
template: [name: standard, name: audio_codec]
|
2022-09-27 06:19:29 +00:00
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
Dolby-TrueHD:
|
|
|
|
variables: {key: truehd, weight: 120}
|
|
|
|
template: [name: standard, name: audio_codec]
|
2022-09-27 06:19:29 +00:00
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
DTS-HD-MA:
|
|
|
|
variables: {key: ma, weight: 110}
|
|
|
|
template: [name: standard, name: audio_codec]
|
2022-09-27 06:19:29 +00:00
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
FLAC:
|
|
|
|
variables: {key: flac, weight: 100}
|
|
|
|
template: [name: standard, name: audio_codec]
|
2022-09-27 06:19:29 +00:00
|
|
|
|
2022-10-17 06:48:08 +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:
|
2022-10-17 06:48:08 +00:00
|
|
|
variables: {key: hra, weight: 80}
|
|
|
|
template: [name: standard, name: audio_codec]
|
2022-09-27 06:19:29 +00:00
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
Dolby-Digital-Plus:
|
|
|
|
variables: {key: plus, weight: 70}
|
|
|
|
template: [name: standard, name: audio_codec]
|
2022-09-27 06:19:29 +00:00
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
DTS-ES:
|
|
|
|
variables: {key: dtses, weight: 60}
|
|
|
|
template: [name: standard, name: audio_codec]
|
2022-09-27 06:19:29 +00:00
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
DTS:
|
|
|
|
variables: {key: dts, weight: 50}
|
|
|
|
template: [name: standard, name: audio_codec]
|
2022-09-27 06:19:29 +00:00
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
Dolby-Digital:
|
|
|
|
variables: {key: digital, weight: 40}
|
|
|
|
template: [name: standard, name: audio_codec]
|
2022-09-27 06:19:29 +00:00
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
AAC:
|
|
|
|
variables: {key: aac, weight: 30}
|
|
|
|
template: [name: standard, name: audio_codec]
|
2022-09-27 06:19:29 +00:00
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
MP3:
|
|
|
|
variables: {key: mp3, weight: 20}
|
|
|
|
template: [name: standard, name: audio_codec]
|
2022-09-27 06:19:29 +00:00
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
Opus:
|
|
|
|
variables: {key: opus, weight: 10}
|
|
|
|
template: [name: standard, name: audio_codec]
|