From 6cc4cf24dc2a52084b71d22a2759f28fe6d11ebc Mon Sep 17 00:00:00 2001 From: ORelio Date: Wed, 9 Aug 2023 20:10:15 +0200 Subject: [PATCH] [FuturaSciences] Fix content extraction (#3487, #3488) (#3606) --- bridges/FuturaSciencesBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/FuturaSciencesBridge.php b/bridges/FuturaSciencesBridge.php index 0aa394fa..3fb8aafa 100644 --- a/bridges/FuturaSciencesBridge.php +++ b/bridges/FuturaSciencesBridge.php @@ -90,7 +90,7 @@ class FuturaSciencesBridge extends FeedExpander $item = parent::parseItem($newsItem); $item['uri'] = str_replace('#xtor%3DRSS-8', '', $item['uri']); $article = getSimpleHTMLDOMCached($item['uri']); - //$item['content'] = $this->extractArticleContent($article); + $item['content'] = $this->extractArticleContent($article); $author = $this->extractAuthor($article); if (!empty($author)) { $item['author'] = $author; @@ -100,7 +100,7 @@ class FuturaSciencesBridge extends FeedExpander private function extractArticleContent($article) { - $contents = $article->find('section.article-text', 1); + $contents = $article->find('div.article-text', 0); foreach ($contents->find('img') as $img) { if (!empty($img->getAttribute('data-src'))) {