From b6237f1309c88b329f7bec26bafbc4f095498c09 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Thu, 2 Nov 2023 10:35:35 -0600 Subject: [PATCH] Update for nudostar attached images (was pulling thumb link instead of full link). --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/crawlers/Xenforo_Spider.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index acf9ed43b..ec167c0e0 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "4.2.217" +__version__ = "4.2.218" diff --git a/cyberdrop_dl/crawlers/Xenforo_Spider.py b/cyberdrop_dl/crawlers/Xenforo_Spider.py index d18b7c76f..356cf4d77 100644 --- a/cyberdrop_dl/crawlers/Xenforo_Spider.py +++ b/cyberdrop_dl/crawlers/Xenforo_Spider.py @@ -224,9 +224,13 @@ async def get_links(self, post_content: bs4.Tag, selector: str, attribute: str, if parent_simp: if "init" in parent_simp: continue + nudo_thumb_check = link_tag.parent.get("href") + if nudo_thumb_check: + if "nudostar" in nudo_thumb_check: + continue test_for_img = link_tag.select_one("img") - if test_for_img: + if test_for_img and "nudostar.com" not in link: continue if not link: continue