Skip to content

Commit

Permalink
1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplants committed May 4, 2022
1 parent 3026ec7 commit 694021a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion getjump/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .getjump import VALID_HOSTS, GetJump

__version__ = "1.1"
__version__ = "1.2"
__all__ = ["GetJump", "VALID_HOSTS"]
4 changes: 3 additions & 1 deletion getjump/getjump.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def get(
self.__check_url(url)
self.login(url, username, password)
url = (
url if url.endswith(".json") else re.sub(r"((episode|magazine|volume)/\d+)", r"\1.json", url)
url
if url.endswith(".json")
else re.sub(r"((episode|magazine|volume)/\d+)", r"\1.json", url)
)
res = self._session.get(url, headers=HEADERS)
self.__check_content_type(res.headers["content-type"])
Expand Down

0 comments on commit 694021a

Please sign in to comment.