mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[Bridge] Add RSS 0.91 parser
This commit is contained in:
parent
0e5775012f
commit
f781965825
@ -678,6 +678,16 @@ abstract class RssExpander extends HttpCachingBridgeAbstract {
|
|||||||
return $item;
|
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
|
* Method should return, from a source RSS item given by lastRSS, one of our Items objects
|
||||||
* @param $item the input rss item
|
* @param $item the input rss item
|
||||||
|
Loading…
Reference in New Issue
Block a user