From 60065ad3b4c4efa5496e6cef48c57352123b60aa Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Thu, 21 Sep 2023 18:28:14 -0600 Subject: [PATCH] Fix sharex scraping for non-jpg. --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/crawlers/ShareX_Spider.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index fa70cb0fc..08fcdf29c 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "4.2.204" +__version__ = "4.2.205" diff --git a/cyberdrop_dl/crawlers/ShareX_Spider.py b/cyberdrop_dl/crawlers/ShareX_Spider.py index 71de4e216..30bb2f553 100644 --- a/cyberdrop_dl/crawlers/ShareX_Spider.py +++ b/cyberdrop_dl/crawlers/ShareX_Spider.py @@ -147,7 +147,7 @@ async def get_list_links(self, session: ScrapeSession, url: URL, title: str, dom async with self.limiter: soup = await session.get_BS4(url) assert url.host is not None - if 'jpg.fish' in url.host or 'jpg.church' in url.host or 'jpg.pet' in url.host or 'jpeg.pet' in url.host or "jpg1.su" in url.host or "jpg2.su": + if 'jpg.fish' in url.host or 'jpg.church' in url.host or 'jpg.pet' in url.host or 'jpeg.pet' in url.host or "jpg1.su" in url.host or "jpg2.su" in url.host: links = soup.select("a[href*=img] img") else: links = soup.select("a[href*=image] img")