From 6bc2a004fde752a72e5e2cdae0d84264396f7059 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 27 Aug 2024 10:40:53 +0200 Subject: [PATCH] mp add cover and change title --- epub.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/epub.php b/epub.php index 5c2b919..cdf5287 100644 --- a/epub.php +++ b/epub.php @@ -380,7 +380,8 @@ $epub = new TPEpubCreator(); $epub->temp_folder = 'temp/'; $epub->epub_file = 'epub/mediapart.epub'; - $epub->title = 'Mediapart ' . $date; + $epub->title = 'Mediapart RSS ' . $date; + $epub->AddImage('https://www.mediapart.fr/icon-news-180x180.png', 'image/jpeg', true); // load feeds $feed = file_get_contents($feedurl); @@ -410,7 +411,8 @@ $epub = new TPEpubCreator(); $epub->temp_folder = 'temp/'; $epub->epub_file = 'epub/mediaparthome.epub'; - $epub->title = 'Mediapart home ' . $date; + $epub->title = 'Mediapart A la une ' . $date; + $epub->AddImage('https://www.mediapart.fr/icon-news-180x180.png', 'image/jpeg', true); $home = file_get_contents($homeurl, false, $context); $doc = new DOMDocument();