Merge branch 'fixIndividualBridges' of https://framagit.org/peetah/rss-bridge

This commit is contained in:
logmanoriginal 2016-10-02 16:13:57 +02:00
commit 4b171f8f46

View file

@ -26,12 +26,17 @@ class CourrierInternationalBridge extends BridgeAbstract{
$item['uri'] = self::URI.$item['uri'];
}
$page = getSimpleHTMLDOM($item['uri']);
$page = getSimpleHTMLDOMCached($item['uri']);
$item['content'] = sanitize($page->find("div.article-text")[0]);
$item['title'] = strip_tags($article->find(".title")[0]);
$content = $page->find('.article-text',0);
if(!$content){
$content = $page->find('.depeche-text',0);
}
$dateTime = date_parse($page->find("time")[0]);
$item['content'] = sanitize($content);
$item['title'] = strip_tags($article->find(".title",0));
$dateTime = date_parse($page->find("time",0));
$item['timestamp'] = mktime(
$dateTime['hour'],