From 0570ca8bfe3288797ae3a6abad719ec8b7780be6 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 26 Oct 2022 03:01:08 -0400 Subject: [PATCH] [159] fix duplicate variable --- VERSION | 2 +- modules/overlays.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index a0e273f9..58599161 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.3-develop158 +1.17.3-develop159 diff --git a/modules/overlays.py b/modules/overlays.py index 77b9f855..aaea1156 100644 --- a/modules/overlays.py +++ b/modules/overlays.py @@ -167,9 +167,9 @@ class Overlays: except Failed as e: logger.error(e) else: - poster = next((p for p in item.posters() if p.provider == "local"), None) - if poster: - new_backup = f"{self.library.url}{poster.key}&X-Plex-Token={self.library.token}" + temp_poster = next((p for p in item.posters() if p.provider == "local"), None) + if temp_poster: + new_backup = f"{self.library.url}{temp_poster.key}&X-Plex-Token={self.library.token}" if not new_backup: logger.error("Overlay Error: Reset Failed") else: