From f7819658251743e4bbe407d71f485e8a43611c88 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sun, 4 Sep 2016 11:45:14 +0200 Subject: [PATCH] [Bridge] Add RSS 0.91 parser --- lib/Bridge.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Bridge.php b/lib/Bridge.php index ed4a143..f2e6525 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -678,6 +678,16 @@ abstract class RssExpander extends HttpCachingBridgeAbstract { return $item; } + protected function parseRSS_0_9_1_Item($feedItem){ + $item = array(); + if(isset($feedItem->link)) $item['uri'] = $feedItem->link; + if(isset($feedItem->title)) $item['title'] = $feedItem->title; + // rss 0.91 doesn't support timestamps + // rss 0.91 doesn't support authors + if(isset($feedItem->description)) $item['content'] = $feedItem->description; + return $item; + } + /** * Method should return, from a source RSS item given by lastRSS, one of our Items objects * @param $item the input rss item