Skip to content

Commit 632ec93

Browse files
committed
up
1 parent d909504 commit 632ec93

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

YetAnotherPicSearch/data_source/nhentai.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ async def nhentai_title_search(title: str) -> list[UniMessage]:
5757
f"{config.nhentai_base_url}/search/",
5858
params={"q": query},
5959
)
60-
if res := NHentaiResponse(resp.text, str(resp.url).replace(config.nhentai_base_url, "", 1)):
60+
if res := NHentaiResponse(
61+
resp.text,
62+
str(resp.url).replace(f"{config.nhentai_base_url}/", "", 1),
63+
):
6164
# 只保留标题和搜索关键词相关度较高的结果,并排序,以此来提高准确度
6265
if res.raw:
6366
res.raw = filter_results_with_ratio(res, title)

0 commit comments

Comments
 (0)