From ce568a86f14adb356f00caf9ef68c807493db008 Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Fri, 29 Dec 2023 20:51:10 -0300 Subject: [PATCH] update: Studio Ghibli API base endpoint Signed-off-by: Nyeki.py <84998222+Nekidev@users.noreply.github.com> --- anime_api/apis/studio_ghibli_api/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/anime_api/apis/studio_ghibli_api/__init__.py b/anime_api/apis/studio_ghibli_api/__init__.py index 19a1efd..a16470c 100644 --- a/anime_api/apis/studio_ghibli_api/__init__.py +++ b/anime_api/apis/studio_ghibli_api/__init__.py @@ -14,7 +14,10 @@ class StudioGhibliAPI: Base class for the Studio Ghibli API """ - endpoint = "https://ghibliapi.herokuapp.com" + endpoint = "https://ghibliapi.dev" + + def __init__(self, endpoint: typing.Optional[str] = None) -> None: + self.endpoint = endpoint or self.endpoint def get_animes(self, limit: int = 50) -> typing.List[Anime]: """