mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-13 03:54:04 +02:00
refactor: FeedExpander::parseItem() descendants (#3744)
This commit is contained in:
@@ -50,13 +50,16 @@ class WiredBridge extends FeedExpander
|
||||
$this->collectExpandableDatas($feed_url, $limit);
|
||||
}
|
||||
|
||||
protected function parseItem($newsItem)
|
||||
protected function parseItem($item)
|
||||
{
|
||||
$item = parent::parseItem($newsItem);
|
||||
$item = parent::parseItem($item);
|
||||
|
||||
$originalContent = $item['content'];
|
||||
|
||||
$article = getSimpleHTMLDOMCached($item['uri']);
|
||||
$item['content'] = $this->extractArticleContent($article);
|
||||
|
||||
$headline = strval($newsItem->description);
|
||||
$headline = $originalContent;
|
||||
if (!empty($headline)) {
|
||||
$item['content'] = '<p><b>' . $headline . '</b></p>' . $item['content'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user