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

Commit

Permalink
add extra handling for gofile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Mar 11, 2024
1 parent 9ed7d96 commit 863ae63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 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.3"
__version__ = "5.2.4"
2 changes: 2 additions & 0 deletions cyberdrop_dl/scraper/crawlers/gofile_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ async def album(self, scrape_item: ScrapeItem) -> None:
await self.get_website_token(self.js_address, self.client)
async with self.request_limiter:
JSON_Resp = await self.client.get_json(self.domain, (self.api_address / "contents" / content_id).with_query({"wt": self.websiteToken}), headers_inc=self.headers)
else:
raise ScrapeFailure(e.status, e.message)

if JSON_Resp["status"] != "ok":
raise ScrapeFailure(404, "Does Not Exist")
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.3"
version = "5.2.4"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 863ae63

Please sign in to comment.