async function searchResults(keyword) { const results = []; const response = await fetchv2("https://www.cuevana3.eu/search?q=" + encodeURIComponent(keyword)); const html = await response.text(); const baseUrl = "https://www.cuevana3.eu"; const regex = /([\s\S]*?)<\/a>/gs; let match; while ((match = regex.exec(html)) !== null) { const href = match[1].trim(); const linkContent = match[2]; if (linkContent.includes('Serie')) { continue; } const imgMatch = linkContent.match(/]+src="([^"]+)"[^>]*>/); const titleMatch = linkContent.match(/]*>([^<]+)<\/span>/); if (imgMatch && titleMatch) { results.push({ title: titleMatch[1].trim(), image: baseUrl + decodeURIComponent(imgMatch[1].replace(/&/g, "&").trim()), href: baseUrl + href }); } } return JSON.stringify(results); } async function extractDetails(url) { const results = []; const response = await fetchv2(url); const html = await response.text(); const regex = /
\s*

(.*?)<\/p>/s; const match = regex.exec(html); const description = match ? match[1].trim() : "N/A"; results.push({ description: description, aliases: 'N/A', airdate: 'N/A' }); return JSON.stringify(results); } async function extractEpisodes(url) { const results = []; const response = await fetchv2(url); const html = await response.text(); console.log(url); const jsonMatch = html.match(/