mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-29 00:10:07 +02:00
parent
1fcf67f14a
commit
6cc4cf24dc
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue