[FuturaSciences] Fix content extraction
This commit is contained in:
parent
efd1abfab1
commit
66a009b8fb
1 changed files with 2 additions and 1 deletions
|
@ -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>';
|
||||
|
|
Loading…
Reference in a new issue