From 16e44139d9b6457aac79bbdd60645fd3822fdf68 Mon Sep 17 00:00:00 2001 From: bullmoose20 Date: Fri, 7 Oct 2022 09:00:31 -0400 Subject: [PATCH] [100] added status overlay and reset many widths to 305 and 160x160 for flixpatrol --- VERSION | 2 +- defaults/overlays/audio_codec.yml | 2 +- defaults/overlays/commonsense.yml | 4 +- defaults/overlays/direct_play.yml | 2 +- defaults/overlays/episode_info.yml | 4 +- defaults/overlays/flixpatrol.yml | 4 +- defaults/overlays/status.yml | 103 +++++++++++++++++++++++++++++ 7 files changed, 112 insertions(+), 9 deletions(-) create mode 100644 defaults/overlays/status.yml diff --git a/VERSION b/VERSION index b0508add..0060aa99 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.3-develop99 +1.17.3-develop100 diff --git a/defaults/overlays/audio_codec.yml b/defaults/overlays/audio_codec.yml index fde72d55..82eca857 100644 --- a/defaults/overlays/audio_codec.yml +++ b/defaults/overlays/audio_codec.yml @@ -27,7 +27,7 @@ # # Set the back radius for the overlay # # back_radius: 30 # # # Set the back width for the overlay # -# back_width: 300 # +# back_width: 305 # # # Sets the style of overlay: standard or compact # # style: compact # # # diff --git a/defaults/overlays/commonsense.yml b/defaults/overlays/commonsense.yml index 4baca7d1..81c6d29e 100644 --- a/defaults/overlays/commonsense.yml +++ b/defaults/overlays/commonsense.yml @@ -33,7 +33,7 @@ # # Set the back radius for the overlay # # back_radius: 30 # # # Set the back width for the overlay # -# back_width: 300 # +# back_width: 305 # # # Set the back height for the overlay # # back_height: 105 # # # @@ -72,7 +72,7 @@ templates: font_color: "#FFFFFF" back_color: "#00000099" back_radius: 30 - back_width: 300 + back_width: 305 back_height: 105 overlay_level: <> allowed_library_types: <>>> diff --git a/defaults/overlays/direct_play.yml b/defaults/overlays/direct_play.yml index 91ad2a42..e18c9180 100644 --- a/defaults/overlays/direct_play.yml +++ b/defaults/overlays/direct_play.yml @@ -35,7 +35,7 @@ templates: vertical_align: bottom back_color: "#00000099" back_radius: 30 - back_width: 290 + back_width: 305 back_height: 170 collection_level: <> overlay: diff --git a/defaults/overlays/episode_info.yml b/defaults/overlays/episode_info.yml index 55c4a11e..a8934d2c 100644 --- a/defaults/overlays/episode_info.yml +++ b/defaults/overlays/episode_info.yml @@ -28,7 +28,7 @@ # # Set the back radius for the overlay # # back_radius: 30 # # # Set the back width for the overlay # -# back_width: 300 # +# back_width: 305 # # # Set the back height for the overlay # # back_height: 105 # ############################################################# @@ -48,7 +48,7 @@ templates: font_color: "#FFFFFF" back_color: "#00000099" back_radius: 30 - back_width: 300 + back_width: 305 back_height: 105 overlay_level: <> overlay: diff --git a/defaults/overlays/flixpatrol.yml b/defaults/overlays/flixpatrol.yml index c6475b59..98fd908a 100644 --- a/defaults/overlays/flixpatrol.yml +++ b/defaults/overlays/flixpatrol.yml @@ -46,8 +46,8 @@ templates: font_color: "#FFFFFF" back_color: "#00000099" back_radius: 30 - back_width: 165 - back_height: 165 + back_width: 160 + back_height: 160 back_align: center back_padding: 15 addon_position: top diff --git a/defaults/overlays/status.yml b/defaults/overlays/status.yml new file mode 100644 index 00000000..c4461721 --- /dev/null +++ b/defaults/overlays/status.yml @@ -0,0 +1,103 @@ +############################################################# +# Status Overlays # +# Created by Yozora, Bullmoose20, & Sohjiro # +# Credit to Magic815 for base images # +############################################################# +# Call this from your config.yml (Show): # +# If nothing is specified these are the defaults # +# # +# overlay_path: # +# - pmm: status # +# template_variables: # +# # Set the horizontal offset for the overlay # +# horizontal_offset: 15 # +# # Set the horizontal align for the overlay # +# horizontal_align: left # +# # Set the vertical offset for the overlay # +# vertical_offset: 330 # +# # Set the vertical align for the overlay # +# vertical_align: top # +# # Set the back color for the overlay # +# back_color: "#00000099" # +# # Set the back radius for the overlay # +# back_radius: 30 # +# # Set the back width for the overlay # +# back_width: 305 # +# # +# # Use the ended overlay # +# use_ended: true # +# # Use the airing overlay # +# use_airing: true # +# # Use the canceled overlay # +# use_canceled: true # +# # Number of days since last episode air date # +# last: 14 # +############################################################# + +templates: + tmdb_status: + conditionals: + all: + conditions: + - key: [ended, returning, canceled] + value: true + tmdb: + conditions: + - key: [ended, returning, canceled] + value: <> + optional: + - use_<> + - back_width + - last + default: + key: <> + horizontal_offset: 15 + horizontal_align: left + vertical_offset: 330 + vertical_align: top + font: fonts/Inter-Medium.ttf + font_size: 50 + font_color: "#FFFFFF" + back_color: "#00000099" + back_radius: 30 + back_width: 305 + back_height: 105 + weight_<>: <> + text_<>: <> + all: true + ignore_blank_results: true + allowed_library_types: <>>> + overlay: + name: text(<>>>) + group: tmdb_status + weight: <>>> + horizontal_offset: <> + horizontal_align: <> + vertical_offset: <> + vertical_align: <> + font: <> + font_size: <> + font_color: <> + back_color: <> + back_radius: <> + back_width: <> + back_height: <> + plex_search: + any: + episode_air_date: <> + plex_all: <> + filters: + tmdb_status: <> + +overlays: + ended_shows: + template: {name: tmdb_status, key: ended, text: ENDED, weight: 30} + + canceled_shows: + template: {name: tmdb_status, key: canceled, text: CANCELED, weight: 40} + + returning_shows: + template: {name: tmdb_status, key: returning, text: RETURNING, weight: 50} + + airing_shows: + template: {name: tmdb_status, key: airing, last: 14, text: AIRING, weight: 60} \ No newline at end of file