Skip to content

Commit 9629d75

Browse files
committed
fix(ascii2d|iqdb): 补上遗漏的针对红链的处理逻辑
1 parent d953713 commit 9629d75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

YetAnotherPicSearch/ascii2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def get_final_res(res: Ascii2DResponse, bovw: bool = False) -> List[str]:
3737
if r.url:
3838
source = await shorten_url(r.url)
3939
elif r.url_list:
40-
source = r.url_list[0][0]
40+
source = await shorten_url(r.url_list[0][0])
4141
author = r.author
4242
if author and r.author_url:
4343
author_url = await shorten_url(r.author_url)

YetAnotherPicSearch/iqdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def iqdb_search(url: str, client: ClientSession, hide_img: bool) -> List[s
3737
res_list = [
3838
f"Iqdb ({selected_res.similarity}%)",
3939
thumbnail,
40-
selected_res.url,
40+
await shorten_url(selected_res.url),
4141
source,
4242
f"搜索页面:{res.url}",
4343
]

0 commit comments

Comments
 (0)