From 05a1076160a0e9ba9348f432a035f3e8620638a3 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 21 Jul 2022 13:31:41 -0400 Subject: [PATCH] [2] fix asset download --- VERSION | 2 +- modules/overlays.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index b34f45e3..4ddea0f6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.2-develop1 +1.17.2-develop2 diff --git a/modules/overlays.py b/modules/overlays.py index 80a959bb..fc6e9fc2 100644 --- a/modules/overlays.py +++ b/modules/overlays.py @@ -173,7 +173,7 @@ class Overlays: image_response = self.config.get(new_backup) if image_response.status_code >= 400: raise Failed(f"{item_title[:60]:<60} | Overlay Error: Image Download Failed") - if image_response.headers[""] not in ["image/png", "image/jpeg"]: + if image_response.headers["Content-Type"] not in ["image/png", "image/jpeg"]: raise Failed(f"{item_title[:60]:<60} | Overlay Error: Image Not JPG or PNG") i_ext = "jpg" if image_response.headers["Content-Type"] == "image/jpeg" else "png" backup_image_path = os.path.join(self.library.overlay_backup, f"{item.ratingKey}.{i_ext}")