]*>[\s\S]*?
]*data-original="([^"]+)"[^>]*>[\s\S]*?([^<]+)<\/h2>/g;
let match;
while ((match = regex.exec(html)) !== null) {
results.push({
href: match[1].trim(),
image: match[2].trim(),
title: decodeHtml(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(/
(.*?)<\/p>/s);
const description = match ? match[1].trim() : "N/A";
return JSON.stringify([{
description: decodeHtml(description),
aliases: "N/A",
airdate: "N/A"
}]);
} catch (err) {
return JSON.stringify([{
description: "Error",
aliases: "Error",
airdate: "Error"
}]);
}
}
async function extractEpisodes(url) {
try {
const response = await fetchv2(url);
const html = await response.text();
const match = html.match(/