From 47db25dca9105140407644e7a731b14efff9ffe4 Mon Sep 17 00:00:00 2001 From: dksx <37441849+dksx@users.noreply.github.com> Date: Mon, 16 Dec 2024 00:27:30 +0100 Subject: [PATCH] Get nextory working --- grawlix/sources/nextory.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/grawlix/sources/nextory.py b/grawlix/sources/nextory.py index 5356641..690c668 100644 --- a/grawlix/sources/nextory.py +++ b/grawlix/sources/nextory.py @@ -30,15 +30,11 @@ class Nextory(Source): self._client.headers.update( { "X-Application-Id": "200", - "X-App-Version": "5.0.0", + "X-App-Version": "5.4.1", "X-Locale": LOCALE, "X-Model": "Personal Computer", "X-Device-Id": device_id, - "locale": LOCALE, - "device": device_id, - "osinfo": "Android 13", - "model": "Personal Computer", - "version": "4.34.6", + "X-Os-Info": "Android", "appid": "200", } ) @@ -108,8 +104,7 @@ class Nextory(Source): if "serier" in url: return await self._download_series(url_id) else: - book_id = await self._get_book_id_from_url_id(url_id) - return await self._download_book(book_id) + return await self._download_book(url_id) async def download_book_from_id(self, book_id: str) -> Book: