[FuturaSciences] Fix content extraction

This commit is contained in:
ORelio 2020-05-23 19:20:39 +02:00
parent efd1abfab1
commit 66a009b8fb

View file

@ -92,11 +92,12 @@ class FuturaSciencesBridge extends FeedExpander {
$author = $this->extractAuthor($article);
if (!empty($author))
$item['author'] = $author;
unset($article);
return $item;
}
private function extractArticleContent($article){
$contents = $article->find('section.article-text-classic', 0)->innertext;
$contents = $article->find('section.article-text', 1)->innertext;
$headline = trim($article->find('p.description', 0)->plaintext);
if(!empty($headline))
$headline = '<p><b>' . $headline . '</b></p>';