diff --git a/animekai/dub/animekai.js b/animekai/dub/animekai.js index 6ceb52c..2856043 100644 --- a/animekai/dub/animekai.js +++ b/animekai/dub/animekai.js @@ -1,7 +1,7 @@ async function searchResults(query) { const encodeQuery = keyword => encodeURIComponent(keyword); - 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; @@ -13,7 +13,7 @@ async function searchResults(query) { try { const encodedQuery = encodeQuery(query); const searchUrl = searchBaseUrl + encodedQuery; - const response = await fetchv2(searchUrl); + const response = await fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(searchUrl)); const htmlText = await response.text(); const results = []; @@ -58,7 +58,7 @@ async function searchResults(query) { async function extractDetails(url) { try { - const response = await fetchv2(url); + const response = await fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(url)); const htmlText = await response.text(); console.log(htmlText); @@ -83,7 +83,7 @@ async function extractDetails(url) { async function extractEpisodes(url) { try { const actualUrl = url.replace("Animekai:", "").trim(); - const htmlText = await (await fetchv2(actualUrl)).text(); + const htmlText = await (await fetchv2("https://deno-proxies-sznvnpnxwhbv.deno.dev/?url=" + encodeURIComponent(actualUrl))).text(); const animeIdMatch = (htmlText.match(/