aspect ratio collections and overlays

This commit is contained in:
bullmoose20 2023-06-23 00:53:24 -04:00
parent f75f8cd77a
commit 52b36e5698
2 changed files with 201 additions and 0 deletions

101
defaults/both/aspect.yml Normal file
View file

@ -0,0 +1,101 @@
##############################################################################
# Aspect Ratio Collections #
# Created by Yozora, Bullmoose20, & Sohjiro #
# EDITING THIS url_poster MAY CAUSE PULLING NEW UPDATES TO FAIL #
# https://metamanager.wiki/en/latest/defaults/both/aspect.html #
##############################################################################
external_templates:
pmm: templates
template_variables:
collection_section: "125"
translations:
pmm: translations
templates:
aspect:
template:
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/aspect/<<mapping_name>>.jpg
summary: A collection of media items with the aspect ratio of <<mapping_name>>.
collections:
Aspect Ratio Collections:
template:
- name: separator
separator: aspect
key_name: Aspect Ratio
translation_key: separator
1.33:
plex_all: true
name: 1.33 - Academy Aperture
template:
- name: aspect
- name: shared
filters:
aspect.gt: 1.32
aspect.lt: 1.34
1.65:
plex_all: true
name: 1.65 - Early Widescreen
template:
- name: aspect
- name: shared
filters:
aspect.gt: 1.64
aspect.lt: 1.66
1.66:
plex_all: true
name: 1.66 - European Widescreen
template:
- name: aspect
- name: shared
filters:
aspect.gt: 1.65
aspect.lt: 1.67
1.78:
plex_all: true
name: 1.78 - Widescreen TV
template:
- name: aspect
- name: shared
filters:
aspect.gt: 1.77
aspect.lt: 1.79
1.85:
plex_all: true
name: 1.85 - American Widescreen
template:
- name: aspect
- name: shared
filters:
aspect.gt: 1.84
aspect.lt: 1.86
2.2:
plex_all: true
name: 2.2 - 70mm Frame
template:
- name: aspect
- name: shared
filters:
aspect.gt: 2.1
aspect.lt: 2.3
2.35:
plex_all: true
name: 2.35 - Anamorphic Projection
template:
- name: aspect
- name: shared
filters:
aspect.gt: 2.34
aspect.lt: 2.36
2.77:
plex_all: true
name: 2.77 - Cinerama
template:
- name: aspect
- name: shared
filters:
aspect.gt: 2.76
aspect.lt: 2.78

View file

@ -0,0 +1,100 @@
##############################################################################
# Aspect Ratio Overlay #
# Created by Yozora, Bullmoose20, & Sohjiro #
# EDITING THIS FILE MAY CAUSE PULLING NEW UPDATES TO FAIL #
# https://metamanager.wiki/en/latest/defaults/overlays/aspect.html #
##############################################################################
external_templates:
pmm: templates
template_variables:
default:
text_<<key>>: <<overlay_name>>
horizontal_align: center
vertical_align: bottom
conditionals:
vertical_offset:
default: 15
conditions:
- vertical_align: center
value: 0
- vertical_align: top
value: 15
- vertical_align: bottom
value: 150
horizontal_offset:
default: 15
conditions:
- horizontal_align: center
value: 0
- horizontal_align: [left, right]
value: 15
group: aspect
font: fonts/Inter-Bold.ttf
font_size: 63
back_color: "#00000099"
back_width: 305
back_height: 105
final_name: text(<<text_<<key>>>>)
templates:
aspect:
ignore_blank_results: true
plex_all: true
overlays:
1.33:
variables: {key: 1.33, weight: 80}
template: [name: standard, name: aspect]
filters:
aspect.gt: 1.32
aspect.lt: 1.34
1.65:
variables: {key: 1.65, weight: 70}
template: [name: standard, name: aspect]
plex_all: true
filters:
aspect.gt: 1.64
aspect.lt: 1.66
1.66:
variables: {key: 1.66, weight: 60}
template: [name: standard, name: aspect]
plex_all: true
filters:
aspect.gt: 1.65
aspect.lt: 1.67
1.78:
variables: {key: 1.78, weight: 50}
template: [name: standard, name: aspect]
plex_all: true
filters:
aspect.gt: 1.77
aspect.lt: 1.79
1.85:
variables: {key: 1.85, weight: 40}
template: [name: standard, name: aspect]
plex_all: true
filters:
aspect.gt: 1.84
aspect.lt: 1.86
2.2:
variables: {key: 2.2, weight: 30}
template: [name: standard, name: aspect]
plex_all: true
filters:
aspect.gt: 2.1
aspect.lt: 2.3
2.35:
variables: {key: 2.35, weight: 20}
template: [name: standard, name: aspect]
plex_all: true
filters:
aspect.gt: 2.34
aspect.lt: 2.36
2.77:
variables: {key: 2.77, weight: 10}
template: [name: standard, name: aspect]
plex_all: true
filters:
aspect.gt: 2.76
aspect.lt: 2.78