From 8799aa764e980d996e4f2959efa3d4870dc78f55 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Tue, 2 Apr 2024 20:34:04 -0600 Subject: [PATCH] try and fix bunkr crash --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/scraper/crawlers/bunkrr_crawler.py | 2 ++ pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index f8768e818..20e7ef285 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.2.15" +__version__ = "5.2.16" diff --git a/cyberdrop_dl/scraper/crawlers/bunkrr_crawler.py b/cyberdrop_dl/scraper/crawlers/bunkrr_crawler.py index 8ad6de3a5..5b53b054f 100644 --- a/cyberdrop_dl/scraper/crawlers/bunkrr_crawler.py +++ b/cyberdrop_dl/scraper/crawlers/bunkrr_crawler.py @@ -32,6 +32,8 @@ async def fetch(self, scrape_item: ScrapeItem) -> None: if scrape_item.url.host.startswith("get"): scrape_item.url = await self.reinforced_link(scrape_item.url) + if not scrape_item.url: + return scrape_item.url = await self.get_stream_link(scrape_item.url) if "a" in scrape_item.url.parts: diff --git a/pyproject.toml b/pyproject.toml index 8def9c4ff..6fe436f83 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.2.15" +version = "5.2.16" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"