From 91c9a93d96f8b7749ba4a316ab3cfce760526feb Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Fri, 15 Sep 2023 20:21:52 +0800 Subject: [PATCH] fix: load taggroup --- src/shared/ehentai/get-tag-groups.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/ehentai/get-tag-groups.ts b/src/shared/ehentai/get-tag-groups.ts index 9c69965b..4c54316e 100644 --- a/src/shared/ehentai/get-tag-groups.ts +++ b/src/shared/ehentai/get-tag-groups.ts @@ -10,13 +10,13 @@ import { type MasterTag, store } from './tag.js'; export async function getTagGroups(): Promise { const tags = []; for (let i = 0; i <= 11; i++) { - const response = (await get(`https://repo.e-hentai.org/tools.php?act=taggroup&show=${i}`)).data; + const response = (await get(`https://repo.e-hentai.org/tools/taggroup?show=${i}`)).data; const namespace = /\[(\w+)<\/span>\]/.exec(response)?.[1]; if (!isNamespaceName(namespace)) { continue; } const matches = response.matchAll( - /(\w+):([-. \w]+)<\/a>/g, + /(\w+):([-. \w]+)<\/a>/g, ); for (const match of matches) { const id = Number.parseInt(match[1]);