From 7c573d6da208ee2aa3d80c1b4ef4e3f79fd9f2b3 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Sun, 10 Mar 2024 15:33:58 -0600 Subject: [PATCH] Fix gofile account gen --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/scraper/crawlers/gofile_crawler.py | 4 ++-- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 6480d9093..a3ad17771 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.2.1" \ No newline at end of file +__version__ = "5.2.2" \ No newline at end of file diff --git a/cyberdrop_dl/scraper/crawlers/gofile_crawler.py b/cyberdrop_dl/scraper/crawlers/gofile_crawler.py index 2ecaee687..e94bb0c33 100644 --- a/cyberdrop_dl/scraper/crawlers/gofile_crawler.py +++ b/cyberdrop_dl/scraper/crawlers/gofile_crawler.py @@ -34,7 +34,7 @@ async def fetch(self, scrape_item: ScrapeItem) -> None: """Determines where to send the scrape item based on the url""" task_id = await self.scraping_progress.add_task(scrape_item.url) - await self.get_token(self.api_address / "createAccount", self.client) + await self.get_token(self.api_address / "accounts", self.client) await self.get_website_token(self.js_address, self.client) await self.album(scrape_item) @@ -99,7 +99,7 @@ async def get_token(self, create_acct_address: URL, session: ScraperClient) -> N async with self.request_limiter: async with self.request_limiter: - JSON_Resp = await session.get_json(self.domain, create_acct_address) + JSON_Resp = await session.post_data(self.domain, create_acct_address, data={}) if JSON_Resp["status"] == "ok": self.token = JSON_Resp["data"]["token"] self.headers["Authorization"] = f"Bearer {self.token}" diff --git a/pyproject.toml b/pyproject.toml index 10db2936f..c26c68726 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.2.1" +version = "5.2.2" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"