diff --git a/grawlix/sources/ereolen.py b/grawlix/sources/ereolen.py index 5b88afd..42aea5d 100644 --- a/grawlix/sources/ereolen.py +++ b/grawlix/sources/ereolen.py @@ -23,7 +23,7 @@ class Ereolen(Source): .read_text("utf8") \ .split("\n") match: list[str] = [ - rf"https://(www.)?({"|".join(library_domains)})/reader\?orderid=.+$", + rf"https://(www.)?({'|'.join(library_domains)})/reader\?orderid=.+$", ] _authentication_methods = [ "login" ] diff --git a/grawlix/sources/nextory.py b/grawlix/sources/nextory.py index 433a3ec..16ddae2 100644 --- a/grawlix/sources/nextory.py +++ b/grawlix/sources/nextory.py @@ -37,7 +37,7 @@ class Nextory(Source): session_response = await self._client.post( "https://api.nextory.com/user/v1/sessions", json = { - "isbn": username, + "identifier": username, "password": password }, ) @@ -144,7 +144,7 @@ class Nextory(Source): for format_type in ("epub", "pdf"): for fmt in product_data["formats"]: if fmt["type"] == format_type: - return (format_type, fmt["isbn"]) + return (format_type, fmt["identifier"]) raise InvalidUrl diff --git a/grawlix/sources/storytel.py b/grawlix/sources/storytel.py index f5f2566..a4d1cae 100644 --- a/grawlix/sources/storytel.py +++ b/grawlix/sources/storytel.py @@ -21,7 +21,7 @@ class Storytel(Source): # Authentication methods - async def login(self, username: str, password: str, **kwargs) -> None: + async def login(self, url: str, username: str, password: str) -> None: self.__username = username self.__password = self.encrypt_password(password) self._client.headers.update({"User-Agent": "Storytel/23.49 (Android 13; Pixel 6) Release/2288481"})