Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix bunkr cdn links.

Jules-WinnfieldX46428960249e
diff --git a/README.md b/README.md
index cce2fd4ed..4f56d8704 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# `cyberdrop-dl`
**Bulk downloader for multiple file hosts**
-The latest version of the program is 3.4.5
+The latest version of the program is 3.4.6
<a href="https://www.buymeacoffee.com/juleswinnft" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
diff --git a/changelog.txt b/changelog.txt
index d6fd1d0fb..720f4d2b3 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -2,4 +2,7 @@
- Fixed config being recreated constantly due to typo.
3.4.5
-- Added support to Coomer/Kemono for single post scraping.
\ No newline at end of file
+- Added support to Coomer/Kemono for single post scraping.
+
+3.4.6
+- Fix bunkr cdn links.
\ No newline at end of file
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 3bc35c30a..3e7e964d9 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "3.4.5"
+__version__ = "3.4.6"
diff --git a/cyberdrop_dl/crawlers/Bunkr_Spider.py b/cyberdrop_dl/crawlers/Bunkr_Spider.py
index aaed11518..ec91a0e75 100644
--- a/cyberdrop_dl/crawlers/Bunkr_Spider.py
+++ b/cyberdrop_dl/crawlers/Bunkr_Spider.py
@@ -14,10 +14,11 @@ class BunkrCrawler:
async def fetch(self, session: Session, url: URL):
domain_obj = DomainItem(url.host, {})
+ ext = '.' + str(url).split('.')[-1]
+ if ext in FILE_FORMATS['Videos']:
+ url = URL(str(url).replace('https://cdn.bunkr.is/', 'https://stream.bunkr.is/v/'))
+
if await check_direct(url):
- ext = '.' + str(url).split('.')[-1]
- if ext in FILE_FORMATS['Videos']:
- url = URL(str(url).replace('https://cdn', 'https://media-files'))
await domain_obj.add_to_album(link=url, referral=url, title="Bunkr Loose Files")
return domain_obj