From 3e98c074da94103d246909a955cdf713b7b93fb9 Mon Sep 17 00:00:00 2001 From: aka paul <50n50@noreply.localhost> Date: Sun, 28 Dec 2025 14:04:15 +0000 Subject: [PATCH] Update ashi/ashi.js --- ashi/ashi.js | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/ashi/ashi.js b/ashi/ashi.js index 3604212..1c9c029 100644 --- a/ashi/ashi.js +++ b/ashi/ashi.js @@ -140,8 +140,8 @@ async function searchResults(query) { }; const animekaiSearch = async () => { - const searchBaseUrl = "https://animekai.to/browser?keyword="; - const baseUrl = "https://animekai.to"; + const searchBaseUrl = "https://anikai.to/browser?keyword="; + const baseUrl = "https://anikai.to"; const posterHrefRegex = /href="[^"]*" class="poster"/g; const titleRegex = /class="title"[^>]*title="[^"]*"/g; @@ -187,7 +187,7 @@ async function searchResults(query) { `${searchBaseUrl}${encodedQuery}&page=3` ]; - const responses = await Promise.all(urls.map(url => fetchv2(url))); + const responses = await Promise.all(urls.map(url => fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(url)))); const htmlTexts = await Promise.all(responses.map(res => res.text())); const allResults = []; @@ -234,7 +234,7 @@ async function searchResults(query) { `${searchBaseUrl}${encodedQuery}&page=3` ]; - const responses = await Promise.all(urls.map(url => fetchv2(url))); + const responses = await Promise.all(urls.map(url => fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(url)))); const htmlTexts = await Promise.all(responses.map(res => res.text())); const allResults = []; @@ -284,7 +284,7 @@ async function extractDetails(url) { const actualUrl = url.replace("Animekai:", "").trim(); try { - const response = await fetchv2(actualUrl); + const response = await fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(actualUrl)); const htmlText = await response.text(); const descriptionMatch = (/