From 7559d635806830d76d6b8d371e3eac6efae90913 Mon Sep 17 00:00:00 2001 From: Chaz Larson Date: Wed, 1 Jan 2025 09:08:19 -0600 Subject: [PATCH] [36] Patch for MDBList docker image issue (#2396) --- VERSION | 2 +- modules/mdblist.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index b0fca486..210cfd84 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.0-build35 +2.1.0-build36 diff --git a/modules/mdblist.py b/modules/mdblist.py index 4a2f1e73..8739d57c 100644 --- a/modules/mdblist.py +++ b/modules/mdblist.py @@ -88,12 +88,16 @@ class MDBList: try: response = self._request(f"{api_url}user") logger.trace(f"MDB response: {response}") + self.supporter = response["limits"]["supporter"] logger.info(f"Supporter Key: {self.supporter}") + self.rating_id_limit = response["limits"]["rating_ids"] # logger.info(f"Rating ID limit: {self.rating_id_limit}") + self.api_limit = response["limits"]["api_requests"] logger.info(f"Daily API requests: {self.api_limit}") + self.get_item(imdb_id="tt0080684", ignore_cache=True) except LimitReached: logger.info(f"MDBList API limit exhausted")