diff --git a/epub.php b/epub.php index f0f6370..9486039 100644 --- a/epub.php +++ b/epub.php @@ -41,6 +41,9 @@ // Le Monde if (isset($_POST['lemonde']) && $_POST['lemonde']) { + // hardcoded for now + $includeimages = false; + $includecover = false; $url = $_POST['lmurl']; // extract url from curl command @@ -55,7 +58,7 @@ $epub->epub_file = 'epub/lemonde.epub'; $epub->title = 'Le Monde ' . $date ; - if ($lm_includecover) + if ($includecover) { // todo get correct cover according to date and time $coverurl = 'https://www.lemonde.fr/thumbnail/journal/'. $date .'/1000/1490'; @@ -101,7 +104,7 @@ $pagecontent .= '' . $articlebody->Introduction . ''; } - if ($lm_includeimages) + if ($includeimages) { $images = array_values(array_filter($article->ContentItem, function($item) { return $item->ContentType == 'graphic/jpeg' || $item->ContentType == 'image/jpeg'; })); foreach ($images as $image) @@ -363,17 +366,6 @@ } ?> -

Existing Files

-
-' . str_replace('epub/', '', $file) . '
'; - } -?> -
-

Generate epub

@@ -381,6 +373,8 @@ Parameters:
GetPublicationContentItems url:
+
Newspapers: @@ -404,5 +398,8 @@
+
+Fichiers générés
+Revue de presse \ No newline at end of file diff --git a/settings.php.sample b/settings.php.sample index 556f958..0908a6b 100644 --- a/settings.php.sample +++ b/settings.php.sample @@ -1,6 +1,4 @@ \ No newline at end of file