diff --git a/src/platforms/gal/Koyso.ts b/src/platforms/gal/Koyso.ts index 1ece96e..a5964ea 100644 --- a/src/platforms/gal/Koyso.ts +++ b/src/platforms/gal/Koyso.ts @@ -22,9 +22,6 @@ async function searchKoyso(game: string): Promise { } const html = await response.text(); - // --- DEBUGGING: Print the full HTML content --- - console.log("Koyso API HTML Response:", html); - // --- END DEBUGGING --- const matches = html.matchAll(REGEX); diff --git a/src/platforms/gal/VikaACG.ts b/src/platforms/gal/VikaACG.ts index f9e3ce4..22efcb5 100644 --- a/src/platforms/gal/VikaACG.ts +++ b/src/platforms/gal/VikaACG.ts @@ -6,7 +6,7 @@ const API_URL = "https://www.vikacg.com/wp-json/b2/v1/getPostList"; // The Python code suggests the response text itself might be a JSON string // that contains escaped HTML. Let's try to parse it as JSON first. // The regex is applied to the *unescaped* string. -const REGEX = /

(?.*?)<"/gs; async function searchVikaACG(game: string): Promise { const searchResult: PlatformSearchResult = { diff --git a/src/platforms/patch/TWOdfan.ts b/src/platforms/patch/TWOdfan.ts index df3628a..5ba5a12 100644 --- a/src/platforms/patch/TWOdfan.ts +++ b/src/platforms/patch/TWOdfan.ts @@ -27,6 +27,8 @@ async function searchTWOdfan(game: string): Promise { const data = await response.json() as TwoDFanResponse; const html = data.subjects; + + console.log("2dfan API HTML Response:", html); const matches = html.matchAll(REGEX);