forked from blallo/rss-bridge
[LeMondeInformatique] fix title stripping
Title wasn't properly stripped due to changes on their website.
This commit is contained in:
parent
d16d514736
commit
47dd6c3b03
1 changed files with 8 additions and 9 deletions
|
@ -7,7 +7,7 @@ class LeMondeInformatiqueBridge extends BridgeAbstract {
|
|||
$this->name = "Le Monde Informatique";
|
||||
$this->uri = "http://www.lemondeinformatique.fr/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = "2015-09-08";
|
||||
$this->update = "2016-01-28";
|
||||
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue