From 42239232653ca76ee9b434b0791b7d9b2d5b3cf7 Mon Sep 17 00:00:00 2001 From: haruna Date: Wed, 30 Oct 2024 05:44:45 +0900 Subject: [PATCH] Update getjump.py --- getjump/getjump.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/getjump/getjump.py b/getjump/getjump.py index faa8630..4670e3e 100644 --- a/getjump/getjump.py +++ b/getjump/getjump.py @@ -111,7 +111,6 @@ def get( # noqa: PLR0913 j = json.loads(json_value)["readableProduct"] nxt = j["nextReadableProductUri"] - nxt = self.__check_next(nxt) if j["typeName"] == "magazine": series_title = self.__get_series_title(url, j["title"]) @@ -204,10 +203,6 @@ def __check_content_type(type_: str) -> None: msg = f"got '{type_}', expect 'text/html'. Is given URL correct?" raise TypeError(msg) - @staticmethod - def __check_next(nxt: str | None) -> str | None: - return nxt + ".json" if isinstance(nxt, str) else nxt - def __save_images( self, pages: list[Page],