From 7163acd05f41e93a78cb6505e8e5239d53d805b8 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 24 Feb 2023 14:37:51 -0500 Subject: [PATCH] [94] resize full overlay images --- VERSION | 2 +- modules/overlays.py | 1 + modules/plex.py | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 51e152de..334fcca4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop93 +1.18.3-develop94 diff --git a/modules/overlays.py b/modules/overlays.py index efa207e8..b720320e 100644 --- a/modules/overlays.py +++ b/modules/overlays.py @@ -309,6 +309,7 @@ class Overlays: else: new_poster = new_poster.resize(current_overlay.image.size, Image.LANCZOS) new_poster.paste(current_overlay.image, (0, 0), current_overlay.image) + new_poster = new_poster.resize((canvas_width, canvas_height), Image.LANCZOS) for queue, weights in queue_overlays.items(): cords = self.library.queues[queue] diff --git a/modules/plex.py b/modules/plex.py index 935623fe..016e2675 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -1174,8 +1174,12 @@ class Plex(Library): posters, backgrounds = util.get_image_dicts(group, alias) if image_set and "poster" in image_set: posters["image_set"] = image_set["poster"] + elif image_set and "poster_tpdb" in image_set: + posters["image_set"] = f"https://theposterdb.com/api/assets/{image_set['poster_tpdb']}" if image_set and "background" in image_set: backgrounds["image_set"] = image_set["background"] + elif image_set and "background_tpdb" in image_set: + posters["image_set"] = f"https://theposterdb.com/api/assets/{image_set['background_tpdb']}" try: asset_poster, asset_background, item_dir, folder_name = self.find_item_assets(item, item_asset_directory=asset_location, asset_directory=asset_directory) if asset_poster: