From 66a009b8fb634bade38319376d056ca5cba1c800 Mon Sep 17 00:00:00 2001 From: ORelio Date: Sat, 23 May 2020 19:20:39 +0200 Subject: [PATCH] [FuturaSciences] Fix content extraction --- bridges/FuturaSciencesBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/FuturaSciencesBridge.php b/bridges/FuturaSciencesBridge.php index 5859bc41..59b4734e 100644 --- a/bridges/FuturaSciencesBridge.php +++ b/bridges/FuturaSciencesBridge.php @@ -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 = '

' . $headline . '

';