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

Commit

Permalink
Fix simpcity attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Dec 24, 2023
1 parent 5917a33 commit e21b2a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 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.25"
__version__ = "5.1.26"
1 change: 1 addition & 0 deletions cyberdrop_dl/downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ async def download(self, media_item: MediaItem) -> None:
self._current_attempt_filesize[media_item.filename] = size
else:
raise DownloadFailure(status=getattr(e, "status", 1), message="Download timeout reached, retrying")
media_item.current_attempt = 0
raise DownloadFailure(status=999, message="Download timeout reached, retrying")

raise DownloadFailure(status=getattr(e, "status", 1), message=repr(e))
Expand Down
2 changes: 1 addition & 1 deletion cyberdrop_dl/scraper/crawlers/simpcity_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, manager: Manager):
self.posts_number_selector = "li[class=u-concealed] a"
self.posts_number_attribute = "href"
self.quotes_selector = "blockquote"
self.posts_content_selector = "div[class=bbWrapper]"
self.posts_content_selector = "div[class*=message-userContent]"
self.next_page_selector = "a[class*=pageNav-jump--next]"
self.next_page_attribute = "href"
self.links_selector = "a"
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.25"
version = "5.1.26"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit e21b2a4

Please sign in to comment.