1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 13:50:23 +02:00

fix(senscritique) (#3750)

This commit is contained in:
Dag
2023-10-13 11:24:22 +02:00
committed by GitHub
parent 49d9dafaec
commit 920d00480d
5 changed files with 28 additions and 35 deletions

View File

@@ -2,6 +2,13 @@
declare(strict_types=1);
/**
* Very basic and naive feed parser that srapes out rss 0.91, 1.0, 2.0 and atom 1.0.
*
* Emit arrays meant to be used inside rss-bridge.
*
* The feed item structure is identical to that of FeedItem
*/
final class FeedParser
{
public function parseFeed(string $xmlString): array
@@ -200,6 +207,8 @@ final class FeedParser
'content' => null,
'timestamp' => null,
'author' => null,
'uid' => null,
'categories' => [],
'enclosures' => [],
];
if (isset($feedItem->link)) {