From 98f2decaa8cc51c4471a17a009b53e273fd312ad Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sun, 7 Apr 2024 21:50:32 -0400 Subject: [PATCH] [3] Fixes #1969 Ignore validating TPDb links --- CHANGELOG | 1 + VERSION | 2 +- modules/builder.py | 7 ++++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 94f603f3..de2f12d5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -12,6 +12,7 @@ Add Page Topics Options to `imdb_search` # Bug Fixes Fixes #1965 `download_url_assets` was causing `url_background` to upload as a poster +Fixes #1969 Ignore validating TPDb links Various other Minor Fixes diff --git a/VERSION b/VERSION index c39bb3dc..5ee27997 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.21.0-develop2 +1.21.0-develop3 diff --git a/modules/builder.py b/modules/builder.py index 717578a3..7305c450 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -1181,9 +1181,10 @@ class CollectionBuilder: def _poster(self, method_name, method_data): if method_name == "url_poster": try: - image_response = self.config.get(method_data, headers=util.header()) - if image_response.status_code >= 400 or image_response.headers["Content-Type"] not in util.image_content_types: - raise ConnectionError + if not method_data.startswith("https://theposterdb.com/api/assets/"): + image_response = self.config.get(method_data, headers=util.header()) + if image_response.status_code >= 400 or image_response.headers["Content-Type"] not in util.image_content_types: + raise ConnectionError self.posters[method_name] = method_data except ConnectionError: logger.warning(f"{self.Type} Warning: No Poster Found at {method_data}")