mp add cover and change title
This commit is contained in:
parent
e6c226c100
commit
6bc2a004fd
6
epub.php
6
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();
|
||||
|
|
Loading…
Reference in New Issue