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

Commit

Permalink
deal with ehentai content warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Jan 11, 2024
1 parent 2fa510c commit a58f4dd
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 71 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.1.37"
__version__ = "5.1.38"
1 change: 1 addition & 0 deletions cyberdrop_dl/scraper/crawlers/ehentai_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async def fetch(self, scrape_item: ScrapeItem) -> None:
task_id = await self.scraping_progress.add_task(scrape_item.url)

if "g" in scrape_item.url.parts:
scrape_item.url = URL(str(scrape_item.url) + "/").with_query("nw=session")
await self.album(scrape_item)
elif "s" in scrape_item.url.parts:
await self.image(scrape_item)
Expand Down
Loading

0 comments on commit a58f4dd

Please sign in to comment.