From 037fec8b8a173f7c21b89d4db302a374fa8db890 Mon Sep 17 00:00:00 2001 From: "brobert (aider)" Date: Tue, 1 Apr 2025 15:07:04 +0200 Subject: [PATCH] feat: disable image downloads in epub generation --- generate-epub.ts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/generate-epub.ts b/generate-epub.ts index 229c33a..1390860 100644 --- a/generate-epub.ts +++ b/generate-epub.ts @@ -26,7 +26,24 @@ async function generateEpub() { output: 'cronicas-periodisticas.epub', content: [], appendChapterTitles: true, - verbose: true + verbose: true, + fetchImages: false, // Disable image downloading + customHtmlTocTemplate: ({ title, author, chapters }) => ` + + + + ${title} + + +

${title}

+

Por ${author}

+

Nota: Las imágenes no se incluyeron en este eBook. Visite los enlaces originales para ver el contenido completo.

+ + + + ` }; // Convert each post to ePub chapter format