async function searchResults(keyword) { const results = []; try { const response = await fetchv2("https://www.animebum.net/search?s=" + encodeURIComponent(keyword)); const html = await response.text(); const regex = /
([\s\S]*?)<\/p>/i; const match = regex.exec(html); let description = match ? match[1].trim() : "N/A"; description = description.replace(/<[^>]+>/g, ""); description = description.replace(/&/g, "&") .replace(/</g, "<") .replace(/>/g, ">") .replace(/"/g, '"') .replace(/'/g, "'") .replace(/á/g, "á") .replace(/é/g, "é") .replace(/í/g, "í") .replace(/ó/g, "ó") .replace(/ú/g, "ú") .replace(/ñ/g, "ñ") .replace(/ü/g, "ü") .replace(/“/g, "“") .replace(/”/g, "”") .replace(/‘/g, "‘") .replace(/’/g, "’") .replace(/¡/g, "¡") .replace(/¿/g, "¿"); return JSON.stringify([{ description: description, aliases: "N/A", airdate: "N/A" }]); } catch (err) { return JSON.stringify([{ description: "Error", aliases: "Error", airdate: "Error" }]); } } async function extractEpisodes(url) { const results = []; try { const response = await fetchv2(url); const html = await response.text(); const containerMatch = html.match( /