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

Commit

Permalink
Fix pixeldrain folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Apr 8, 2024
1 parent b6e08ed commit 32a77e1
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.23"
__version__ = "5.2.24"
4 changes: 2 additions & 2 deletions cyberdrop_dl/scraper/crawlers/pixeldrain_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ async def folder(self, scrape_item: ScrapeItem) -> None:
link = await self.create_download_link(file['id'])
date = await self.parse_datetime(file['date_upload'].replace("T", " ").split(".")[0].strip("Z"))
try:
filename, ext = await get_filename_and_ext(JSON_Resp['name'])
filename, ext = await get_filename_and_ext(file['name'])
except NoExtensionFailure:
if "image" or "video" in file["mime_type"]:
filename, ext = await get_filename_and_ext(JSON_Resp['name'] + "." + file["mime_type"].split("/")[-1])
filename, ext = await get_filename_and_ext(file['name'] + "." + file["mime_type"].split("/")[-1])
else:
raise NoExtensionFailure()
new_scrape_item = await self.create_scrape_item(scrape_item, link, title, True, None, date)
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.23"
version = "5.2.24"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 32a77e1

Please sign in to comment.