1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-04 23:57:29 +02:00

refactor(FeedParser): (#3928)

This commit is contained in:
Dag
2024-01-29 21:51:06 +01:00
committed by GitHub
parent cfe3dcfe6d
commit c4fceab7b3
4 changed files with 88 additions and 41 deletions

View File

@@ -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);