[LeMondeInformatique] fix title stripping

Title wasn't properly stripped due to changes on their website.
This commit is contained in:
ORelio 2016-02-03 20:36:16 +01:00
parent d16d514736
commit 47dd6c3b03

View file

@ -1,15 +1,15 @@
<?php
class LeMondeInformatiqueBridge extends BridgeAbstract {
public function loadMetadatas() {
public function loadMetadatas() {
$this->maintainer = "ORelio";
$this->name = "Le Monde Informatique";
$this->uri = "http://www.lemondeinformatique.fr/";
$this->description = "Returns the newest articles.";
$this->update = "2015-09-08";
$this->maintainer = "ORelio";
$this->name = "Le Monde Informatique";
$this->uri = "http://www.lemondeinformatique.fr/";
$this->description = "Returns the newest articles.";
$this->update = "2016-01-28";
}
}
public function collectData(array $param) {
@ -29,7 +29,7 @@ class LeMondeInformatiqueBridge extends BridgeAbstract {
function CleanArticle($article_html) {
$article_html = StripWithDelimiters($article_html, '<script', '</script>');
$article_html = StripWithDelimiters($article_html, '<h1 class="cleanprint-title">', '</h1>');
$article_html = StripWithDelimiters($article_html, '<h1 class="cleanprint-title"', '</h1>');
return $article_html;
}
@ -73,6 +73,5 @@ class LeMondeInformatiqueBridge extends BridgeAbstract {
public function getCacheDuration() {
return 1800; // 30 minutes
// return 0;
}
}