mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
parent
1fcf67f14a
commit
6cc4cf24dc
@ -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'))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user