From 32a77e18a01a87ecd2837d05c16cfbbb6b86f33b Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Mon, 8 Apr 2024 12:11:54 -0600 Subject: [PATCH] Fix pixeldrain folders --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/scraper/crawlers/pixeldrain_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 cbf51729b..af35e6cb1 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.2.23" +__version__ = "5.2.24" diff --git a/cyberdrop_dl/scraper/crawlers/pixeldrain_crawler.py b/cyberdrop_dl/scraper/crawlers/pixeldrain_crawler.py index 17b4ae198..af18e8f69 100644 --- a/cyberdrop_dl/scraper/crawlers/pixeldrain_crawler.py +++ b/cyberdrop_dl/scraper/crawlers/pixeldrain_crawler.py @@ -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) diff --git a/pyproject.toml b/pyproject.toml index c3a5d62bd..c3ab14bdb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] readme = "README.md"