Skip to content

Bulk asynchronous downloader for multiple file hosts

Re-add link -> img check on xenforo to reduce hits to fileshare sites.

Jules-WinnfieldXf749b2262b12
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 3e2789760..b9ddfa6e8 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "4.2.171"
+__version__ = "4.2.172"
diff --git a/cyberdrop_dl/crawlers/Xenforo_Spider.py b/cyberdrop_dl/crawlers/Xenforo_Spider.py
index 1672227be..9d9546a82 100644
--- a/cyberdrop_dl/crawlers/Xenforo_Spider.py
+++ b/cyberdrop_dl/crawlers/Xenforo_Spider.py
@@ -217,12 +217,13 @@ class XenforoCrawler:
links = post_content.select(selector)
for link_tag in links:
link = link_tag.get(attribute)
- # test_for_img = link_tag.select_one("img")
- # if test_for_img:
- # continue
+ test_for_img = link_tag.select_one("img")
+ if test_for_img:
+ continue
if not link:
continue
assert isinstance(link, str)
+ link = link.replace(".th.", ".").replace(".md.", ".")
if link.endswith("/"):
link = link[:-1]
if link.startswith('//'):