Skip to content

Bulk asynchronous downloader for multiple file hosts

feat: handle direct links from forums (attachments)

NTFSvolumed60d8761a60a
diff --git a/cyberdrop_dl/scraper/crawlers/xenforo_crawler.py b/cyberdrop_dl/scraper/crawlers/xenforo_crawler.py
index 1f389367c..4835ae9d7 100644
--- a/cyberdrop_dl/scraper/crawlers/xenforo_crawler.py
+++ b/cyberdrop_dl/scraper/crawlers/xenforo_crawler.py
@@ -120,7 +120,10 @@ class XenforoCrawler(Crawler):
async def fetch(self, scrape_item: ScrapeItem) -> None:
"""Determines where to send the scrape item based on the url."""
scrape_item.url = await self.pre_filter_link(scrape_item.url)
- await self.thread(scrape_item)
+ if self.is_attachment(scrape_item.url):
+ await self.handle_internal_link(scrape_item.url, scrape_item)
+ else:
+ await self.thread(scrape_item)
async def try_login(self) -> None:
login_url = self.primary_base_domain / "login"