Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix gofile account gen

Jules-WinnfieldX7c573d6da208
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 @@ class GoFileCrawler(Crawler):
"""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 @@ class GoFileCrawler(Crawler):
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 <[email protected]>"]
readme = "README.md"