Skip to content

Commit

Permalink
Update getjump.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplants authored Oct 29, 2024
1 parent 8082fc7 commit 4223923
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions getjump/getjump.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 4223923

Please sign in to comment.