Skip to content

Commit

Permalink
fix: attachment downloads (xenforo)
Browse files Browse the repository at this point in the history
  • Loading branch information
NTFSvolume committed Jan 30, 2025
1 parent 3c59a84 commit 9db064d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cyberdrop_dl/scraper/crawlers/xenforo_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ async def handle_link(self, scrape_item: ScrapeItem, link: URL) -> None:
return
assert link.host
try:
if self.is_attachment(link):
return await self.handle_internal_link(link, scrape_item)
if self.primary_base_domain.host in link.host: # type: ignore
if self.is_attachment(link):
return await self.handle_internal_link(link, scrape_item)
origin = scrape_item.parents[0]
return log(f"Skipping nested thread URL {link} found on {origin}", 10)
new_scrape_item = self.create_scrape_item(scrape_item, link)
Expand Down

0 comments on commit 9db064d

Please sign in to comment.