async function searchResults(keyword) { const results = []; try { const response = await fetchv2("https://ww1.asia2tv.pw/?s=" + encodeURIComponent(keyword)); const html = await response.text(); const regex = /
([\s\S]*?)<\/p>/i;
const descMatch = html.match(descRegex);
const description = descMatch ? descMatch[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 regex = /]*\/>\s*