async function searchResults(keyword) { const results = []; const response = await fetchv2("https://animefhd.com/?s=" + encodeURIComponent(keyword)); const html = await response.text(); const filmListRegex = /
\s*([\s\S]*?)\s*<\/p>/); let description = descriptionMatch ? descriptionMatch[1].trim() : 'N/A'; const airdateMatch = html.match(/Ano:<\/b>\s*(\d{4})/); let airdate = airdateMatch ? airdateMatch[1].trim() : 'N/A'; const episodesMatch = html.match(/Episódios:<\/b>\s*(\d+)/); let aliases = episodesMatch ? episodesMatch[1].trim() : 'N/A'; details.push({ description: description, alias: "Episódios: " + aliases, airdate: airdate }); console.log(details); return JSON.stringify(details); } async function extractEpisodes(url) { const episodes = []; const response = await fetchv2(url); const html = await response.text(); const episodeMatches = html.match(/]*class="list-epi"[^>]*>Episódio (\d+)<\/a>/g); if (episodeMatches) { episodeMatches.forEach(match => { const hrefMatch = match.match(/href="([^"]+)"/); const numberMatch = match.match(/Episódio (\d+)/); if (hrefMatch && numberMatch) { episodes.push({ href: hrefMatch[1], number: parseInt(numberMatch[1]) }); } }); } console.log(JSON.stringify(episodes)); return JSON.stringify(episodes); } async function extractStreamUrl(url) { const response = await fetchv2(url); const html = await response.text(); const iframeMatch = html.match(/