From 52b36e569848ce3c026da8d29afeeed6dac6c991 Mon Sep 17 00:00:00 2001 From: bullmoose20 Date: Fri, 23 Jun 2023 00:53:24 -0400 Subject: [PATCH] aspect ratio collections and overlays --- defaults/both/aspect.yml | 101 +++++++++++++++++++++++++++++++++++ defaults/overlays/aspect.yml | 100 ++++++++++++++++++++++++++++++++++ 2 files changed, 201 insertions(+) create mode 100644 defaults/both/aspect.yml create mode 100644 defaults/overlays/aspect.yml diff --git a/defaults/both/aspect.yml b/defaults/both/aspect.yml new file mode 100644 index 00000000..780ca607 --- /dev/null +++ b/defaults/both/aspect.yml @@ -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/<>.jpg + summary: A collection of media items with the aspect ratio of <>. + +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 \ No newline at end of file diff --git a/defaults/overlays/aspect.yml b/defaults/overlays/aspect.yml new file mode 100644 index 00000000..0ebc10e8 --- /dev/null +++ b/defaults/overlays/aspect.yml @@ -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_<>: <> + 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(<>>>) + +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