From e337a62fe2d7d54936ffd50cd740c5499ee9be46 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 21 Feb 2023 15:03:50 -0500 Subject: [PATCH] [77] #1251 Seasons now look at shows for posters when nothing else is found --- VERSION | 2 +- modules/plex.py | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index bfa783c2..26107eb9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop76 +1.18.3-develop77 diff --git a/modules/plex.py b/modules/plex.py index 9c7fd620..629211f3 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -636,6 +636,19 @@ class Plex(Library): continue if image_url: break + if not image_url and "plex" in providers and isinstance(item, Season): + for poster in item.show().posters(): + if poster.key.startswith("/"): + image_url = f"{self.url}{poster.key}&X-Plex-Token={self.token}" + if poster.ratingKey.startswith("upload"): + try: + self.check_image_for_overlay(image_url, os.path.join(self.overlay_backup, "temp"), remove=True) + except Failed as e: + logger.trace(f"Plex Error: {e}") + continue + else: + image_url = poster.key + break if not image_url: raise Failed("Overlay Error: No Poster found to reset") return image_url