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

Commit

Permalink
Fix sharex scraping for non-jpg.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Sep 22, 2023
1 parent 9770d1d commit 60065ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.2.204"
__version__ = "4.2.205"
2 changes: 1 addition & 1 deletion cyberdrop_dl/crawlers/ShareX_Spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 60065ad

Please sign in to comment.