This commit is contained in:
parent
de8cee6a1c
commit
55b36b0455
1 changed files with 5 additions and 4 deletions
|
@ -3,7 +3,7 @@ class DauphineLibereBridge extends FeedExpander {
|
||||||
|
|
||||||
const MAINTAINER = 'qwertygc';
|
const MAINTAINER = 'qwertygc';
|
||||||
const NAME = 'Dauphine Bridge';
|
const NAME = 'Dauphine Bridge';
|
||||||
const URI = 'http://www.ledauphine.com/';
|
const URI = 'https://www.ledauphine.com/';
|
||||||
const CACHE_TIMEOUT = 7200; // 2h
|
const CACHE_TIMEOUT = 7200; // 2h
|
||||||
const DESCRIPTION = 'Returns the newest articles.';
|
const DESCRIPTION = 'Returns the newest articles.';
|
||||||
|
|
||||||
|
@ -49,8 +49,9 @@ class DauphineLibereBridge extends FeedExpander {
|
||||||
|
|
||||||
private function extractContent($url){
|
private function extractContent($url){
|
||||||
$html2 = getSimpleHTMLDOMCached($url);
|
$html2 = getSimpleHTMLDOMCached($url);
|
||||||
$text = $html2->find('div.column', 0)->innertext;
|
foreach ($html2->find('.noprint, link, script, iframe, .shareTool, .contentInfo') as $remove) {
|
||||||
$text = preg_replace('@<script[^>]*?>.*?</script>@si', '', $text);
|
$remove->outertext = '';
|
||||||
return $text;
|
}
|
||||||
|
return $html2->find('div.content', 0)->innertext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue