]*>([\s\S]*?)<\/div>/);
const description = descriptionMatch ? descriptionMatch[1].trim() : 'No description available';
const transformedResults = [{
description,
aliases: 'N/A',
airdate: 'N/A'
}];
console.log(JSON.stringify(transformedResults));
return JSON.stringify(transformedResults);
} catch (error) {
console.log('Details error:', error);
return JSON.stringify([{
description: 'Error loading description',
aliases: 'N/A',
airdate: 'N/A'
}]);
}
}
async function extractChapters(url) {
try {
const response = await soraFetch(url);
const htmlText = await response.text();
const rawChapters = [];
const regex = /