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