async function searchResults(keyword) { const results = []; try { const response = await fetchv2("https://xiaoxintv.cc/index.php/vod/search.html?wd=" + encodeURIComponent(keyword) + "&submit="); const html = await response.text(); const regex = /class="myui-vodlist__thumb[^"]*" href="([^"]*)"[^>]*title="([^"]*)"[^>]*data-original="([^"]*)"/g; let match; while ((match = regex.exec(html)) !== null) { results.push({ title: match[2].trim(), image: "https://xiaoxintv.cc" + match[3].trim(), href: "https://xiaoxintv.cc" + match[1].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 regex = /]*>

(.*?)<\/p><\/span>/s; const match = regex.exec(html); const description = match ? match[1].trim() : "No description available"; 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 ulRegex = /