Skip to content

Commit

Permalink
fix(ehentai): 修正 ehentai_search() 的逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoAria committed Nov 17, 2022
1 parent 8b98864 commit 17f90ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YetAnotherPicSearch/ehentai.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async def ehentai_search(url: str, client: ClientSession, hide_img: bool) -> Lis
if res := await ehentai.search(url, ex=ex):
if "Please wait a bit longer between each file search" in res.origin:
await sleep(30 / 4)
return await ehentai_search(file, client, hide_img)
return await ehentai_search(url, client, hide_img)
if not res.raw:
# 如果第一次没找到,使搜索结果包含被删除的部分,并重新搜索
async with ClientSession(headers=EHENTAI_HEADERS) as session:
Expand Down

0 comments on commit 17f90ab

Please sign in to comment.