[3] Fixes #1969 Ignore validating TPDb links

pull/1971/head
meisnate12 8 months ago
parent 26f1cebab4
commit 98f2decaa8

@ -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

@ -1 +1 @@
1.21.0-develop2
1.21.0-develop3

@ -1181,6 +1181,7 @@ class CollectionBuilder:
def _poster(self, method_name, method_data):
if method_name == "url_poster":
try:
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

Loading…
Cancel
Save