mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-31 20:02:03 +02:00
refactor: FeedExpander::parseItem() descendants (#3744)
This commit is contained in:
@@ -9,15 +9,15 @@ class HardwareInfoBridge extends FeedExpander
|
||||
|
||||
public function collectData()
|
||||
{
|
||||
$this->collectExpandableDatas('https://nl.hardware.info/updates/all.rss', 20);
|
||||
$this->collectExpandableDatas('https://nl.hardware.info/updates/all.rss', 10);
|
||||
}
|
||||
|
||||
protected function parseItem($feedItem)
|
||||
protected function parseItem($item)
|
||||
{
|
||||
$item = parent::parseItem($feedItem);
|
||||
$item = parent::parseItem($item);
|
||||
|
||||
//get full article
|
||||
$articlePage = getSimpleHTMLDOMCached($feedItem->link);
|
||||
$itemUrl = $item['uri'];
|
||||
$articlePage = getSimpleHTMLDOMCached($itemUrl);
|
||||
|
||||
$article = $articlePage->find('div.article__content', 0);
|
||||
|
||||
|
Reference in New Issue
Block a user