([^<]+)<\/p>/g; let match; while ((match = regex.exec(containerHtml)) !== null) { results.push({ href: "https://animemeow.xyz" + match[1].trim(), image: "https://animemeow.xyz" + match[2].trim(), title: match[3].trim() }); } return JSON.stringify(results); } catch (err) { return JSON.stringify([{ title: "Error", image: "Error", href: "Error" }]); } } async function extractDetails(url) { try { const response = await fetchv2(url); const html = await response.text(); const match = html.match(/
([\s\S]*?)<\/p>/); const description = match ? match[1].trim() : "N/A"; 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(/
- ([\s\S]*?)<\/ul>/);
const containerHtml = containerMatch ? containerMatch[1] : "";
const regex = /[\s\S]*?
[\s\S]*?<\/i>\s*([^<]+)<\/p>/g; let match; while ((match = regex.exec(containerHtml)) !== null) { const href = "https://animemeow.xyz" + match[1].trim(); let number; if (/Episodio\s*(\d+)/i.test(match[2])) { number = parseInt(match[2].match(/Episodio\s*(\d+)/i)[1], 10); } else if (/Ver Pel[iĆ]cula/i.test(match[2])) { number = 1; } else { number = "N/A"; } results.push({ href, number }); } return JSON.stringify(results); } catch (err) { return JSON.stringify([{ href: "Error", number: "Error" }]); } } async function extractStreamUrl(url) { try { const response = await fetchv2(url); const html = await response.text(); const buttonMatch = html.match(/