Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix pixeldrain date formatting.

Jules-WinnfieldXd2c13ff69af4
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 57f700100..f8768e818 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.2.14"
+__version__ = "5.2.15"
diff --git a/cyberdrop_dl/scraper/crawlers/pixeldrain_crawler.py b/cyberdrop_dl/scraper/crawlers/pixeldrain_crawler.py
index 47bb3539a..6490c85f1 100644
--- a/cyberdrop_dl/scraper/crawlers/pixeldrain_crawler.py
+++ b/cyberdrop_dl/scraper/crawlers/pixeldrain_crawler.py
@@ -69,7 +69,10 @@ class PixelDrainCrawler(Crawler):
async def parse_datetime(self, date: str) -> int:
"""Parses a datetime string into a unix timestamp"""
- date = datetime.datetime.strptime(date, "%Y-%m-%d %H:%M:%S")
+ try:
+ date = datetime.datetime.strptime(date, "%Y-%m-%d %H:%M:%S")
+ except ValueError:
+ date = datetime.datetime.strptime(date, "%Y-%m-%d %H:%M:%SZ")
return calendar.timegm(date.timetuple())
async def create_download_link(self, file_id: str) -> URL:
diff --git a/pyproject.toml b/pyproject.toml
index 32271520a..8def9c4ff 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.2.14"
+version = "5.2.15"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"