Skip to content

Commit

Permalink
refactor: simplify query string
Browse files Browse the repository at this point in the history
  • Loading branch information
NTFSvolume committed Jan 2, 2025
1 parent 9942598 commit 8b76e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyberdrop_dl/scraper/crawlers/ehentai_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def image(self, scrape_item: ScrapeItem) -> None:
async def set_no_warnings(self, scrape_item: ScrapeItem) -> None:
"""Sets the no warnings cookie."""
async with self.request_limiter:
url = URL(str(scrape_item.url) + "/").update_query("nw=session")
url = scrape_item.url.update_query(nw="session")
await self.client.get_soup(self.domain, url, origin=scrape_item)
self._warnings_set = True

Expand Down

0 comments on commit 8b76e02

Please sign in to comment.