diff --git a/temp/temp.js b/temp/temp.js index 7f4c710..9143c6d 100644 --- a/temp/temp.js +++ b/temp/temp.js @@ -115,7 +115,65 @@ async function extractText(url) { try { const response = await soraFetch(url); const htmlText = await response.text(); + + const regex = /'(https:\/\/[^']+\.jpg)'/g; + const matches = [...htmlText.matchAll(regex)]; + const imageUrls = matches.map(match => match[1]); + + const html = ` + + + + + Manga + + + +${imageUrls.map(url => ` `).join('\n')} + + +`; + + return html; + } catch (error) { console.error("❌ Error in extractImages:", error); return {