Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Fix SC attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Jan 29, 2024
1 parent 4cd0620 commit a49d8e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.1.57"
__version__ = "5.1.58"
4 changes: 2 additions & 2 deletions cyberdrop_dl/scraper/crawlers/simpcity_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async def links(self, scrape_item: ScrapeItem, post_content: Tag) -> None:
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)
Expand Down Expand Up @@ -205,7 +205,7 @@ async def images(self, scrape_item: ScrapeItem, post_content: Tag) -> None:
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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit a49d8e1

Please sign in to comment.