mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-12 15:04:38 +02:00
refactor(FeedParser): (#3928)
This commit is contained in:
parent
cfe3dcfe6d
commit
c4fceab7b3
4 changed files with 88 additions and 41 deletions
|
@ -32,6 +32,7 @@ abstract class FeedExpander extends BridgeAbstract
|
|||
$feedParser = new FeedParser();
|
||||
$this->feed = $feedParser->parseFeed($xmlString);
|
||||
$items = array_slice($this->feed['items'], 0, $maxItems);
|
||||
// todo: extract parse logic out from FeedParser
|
||||
foreach ($items as $item) {
|
||||
// Give bridges a chance to modify the item
|
||||
$item = $this->parseItem($item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue