Skip to content

Commit

Permalink
fix(ehentai): correct URL path for image lookup endpoint, update data…
Browse files Browse the repository at this point in the history
… payload key for file search
  • Loading branch information
NekoAria committed Jul 24, 2024
1 parent ba9c666 commit bf74560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PicImageSearch/ehentai.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ async def search(
_url: str = (
f"{self.base_url_ex}/upld/image_lookup.php"
if ex
else f"{self.base_url}/upld/image_lookup.php"
else f"{self.base_url}/image_lookup.php"
)
data: dict[str, Any] = {"f_sfile": "search"}
data: dict[str, Any] = {"f_sfile": "File Search"}
if url:
files: dict[str, Any] = {"sfile": await self.download(url)}
elif file:
Expand Down

0 comments on commit bf74560

Please sign in to comment.