mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-09-01 08:15:57 +02:00
fix(senscritique) (#3750)
This commit is contained in:
parent
49d9dafaec
commit
920d00480d
5 changed files with 28 additions and 35 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue