|
|
@ -88,12 +88,16 @@ class MDBList:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
response = self._request(f"{api_url}user")
|
|
|
|
response = self._request(f"{api_url}user")
|
|
|
|
logger.trace(f"MDB response: {response}")
|
|
|
|
logger.trace(f"MDB response: {response}")
|
|
|
|
|
|
|
|
|
|
|
|
self.supporter = response["limits"]["supporter"]
|
|
|
|
self.supporter = response["limits"]["supporter"]
|
|
|
|
logger.info(f"Supporter Key: {self.supporter}")
|
|
|
|
logger.info(f"Supporter Key: {self.supporter}")
|
|
|
|
|
|
|
|
|
|
|
|
self.rating_id_limit = response["limits"]["rating_ids"]
|
|
|
|
self.rating_id_limit = response["limits"]["rating_ids"]
|
|
|
|
# logger.info(f"Rating ID limit: {self.rating_id_limit}")
|
|
|
|
# logger.info(f"Rating ID limit: {self.rating_id_limit}")
|
|
|
|
|
|
|
|
|
|
|
|
self.api_limit = response["limits"]["api_requests"]
|
|
|
|
self.api_limit = response["limits"]["api_requests"]
|
|
|
|
logger.info(f"Daily API requests: {self.api_limit}")
|
|
|
|
logger.info(f"Daily API requests: {self.api_limit}")
|
|
|
|
|
|
|
|
|
|
|
|
self.get_item(imdb_id="tt0080684", ignore_cache=True)
|
|
|
|
self.get_item(imdb_id="tt0080684", ignore_cache=True)
|
|
|
|
except LimitReached:
|
|
|
|
except LimitReached:
|
|
|
|
logger.info(f"MDBList API limit exhausted")
|
|
|
|
logger.info(f"MDBList API limit exhausted")
|
|
|
|