Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix bunkr album images not downloading. (they point to /d/, was assuming a cdn link)

Jules-WinnfieldX5d19515bd144
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 230b5c6c9..a5a119b87 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "4.2.153"
+__version__ = "4.2.154"
diff --git a/cyberdrop_dl/crawlers/Bunkr_Spider.py b/cyberdrop_dl/crawlers/Bunkr_Spider.py
index 63a6c491a..7bd8a03e4 100644
--- a/cyberdrop_dl/crawlers/Bunkr_Spider.py
+++ b/cyberdrop_dl/crawlers/Bunkr_Spider.py
@@ -156,8 +156,7 @@ class BunkrCrawler:
async def get_album(self, session: ScrapeSession, url: URL):
"""Iterates through an album and creates the media items"""
- ### Temp Fix ###
- url = url.with_host("bunkrr.su")
+ url = self.primary_base_domain.with_path(url.path)
album = AlbumItem(url.name, [])
try:
@@ -193,6 +192,9 @@ class BunkrCrawler:
continue
if ext in FILE_FORMATS["Images"]:
+ if "d" in link.parts:
+ media = await self.get_file(session, referer)
+ link = media.url
link = URL(str(link).replace("https://cdn", "https://i"))
else:
media = await self.get_file(session, referer)