Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix SC attachments

Jules-WinnfieldXa49d8e1ae795
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 022befa80..716291dbd 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.1.57"
\ No newline at end of file
+__version__ = "5.1.58"
\ No newline at end of file
diff --git a/cyberdrop_dl/scraper/crawlers/simpcity_crawler.py b/cyberdrop_dl/scraper/crawlers/simpcity_crawler.py
index e84dcb7c7..1823e2530 100644
--- a/cyberdrop_dl/scraper/crawlers/simpcity_crawler.py
+++ b/cyberdrop_dl/scraper/crawlers/simpcity_crawler.py
@@ -147,7 +147,7 @@ class SimpCityCrawler(Crawler):
links = post_content.select(self.links_selector)
for link_obj in links:
test_for_img = link_obj.select_one("img")
- if test_for_img is not None:
+ if test_for_img is not None and self.attachment_url_part not in link_obj.get(self.links_attribute):
continue
link = link_obj.get(self.links_attribute)
@@ -205,7 +205,7 @@ class SimpCityCrawler(Crawler):
new_scrape_item = await self.create_scrape_item(scrape_item, link, "")
await self.handle_external_links(new_scrape_item)
elif self.attachment_url_part in link.parts:
- await self.handle_internal_links(link, scrape_item)
+ continue
else:
await log(f"Unknown image type: {link}", 30)
continue
diff --git a/pyproject.toml b/pyproject.toml
index 5cef3c2bb..6ddd3d925 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.1.57"
+version = "5.1.58"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"