Skip to content

Bulk asynchronous downloader for multiple file hosts

I'll deal with this when it breaks again, so we have faster jpg download speeds.

Jules-WinnfieldX372e42a93da0
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 093eec7dc..5e3ba37d0 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "4.2.37"
+__version__ = "4.2.38"
diff --git a/cyberdrop_dl/crawlers/ShareX_Spider.py b/cyberdrop_dl/crawlers/ShareX_Spider.py
index 34e29e439..3e9dbd5e6 100644
--- a/cyberdrop_dl/crawlers/ShareX_Spider.py
+++ b/cyberdrop_dl/crawlers/ShareX_Spider.py
@@ -28,7 +28,7 @@ class ShareXCrawler:
self.include_id = include_id
self.quiet = quiet
self.SQL_Helper = SQL_Helper
- self.limiter = AsyncLimiter(10, 1)
+ self.limiter = AsyncLimiter(8, 1)
self.error_writer = error_writer
@@ -58,8 +58,13 @@ class ShareXCrawler:
return domain_obj
async def jpg_church_from_fish(self, url: URL) -> URL:
- pattern2 = r"simp([1-5])\.jpg\.fish/"
- return URL(re.sub(pattern2, r'simp\1.jpg.church/', str(url)))
+ pattern = r"simp([1-5])\.jpg\.fish/"
+ return_url = URL(re.sub(pattern, r'simp\1.jpg.church/', str(url)))
+ # The below is a makeshift fix until jpg.church has fully transitioned over to their new caching structure
+ # At the time of doing this, 2,4,6 are on the new structure, 1,3,5 are on the old
+ pattern2 = r"simp([1,3,5])\.jpg\.church/"
+ return_url = URL(re.sub(pattern2, r'simp\1.jpg.fish/', str(return_url)))
+ return return_url
async def get_albums(self, session: ScrapeSession, url: URL, domain_obj: DomainItem) -> None:
"""Handles scraping for Albums"""