Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Fix gofile account gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Mar 10, 2024
1 parent fe4d151 commit 7c573d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.2.1"
__version__ = "5.2.2"
4 changes: 2 additions & 2 deletions cyberdrop_dl/scraper/crawlers/gofile_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 7c573d6

Please sign in to comment.