mp add cover and change title

This commit is contained in:
quenousimporte 2024-08-27 10:40:53 +02:00
parent e6c226c100
commit 6bc2a004fd
1 changed files with 4 additions and 2 deletions

View File

@ -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();