1
0
Fork 0
forked from blallo/rss-bridge

[Numerama] Add author to feed output

This commit is contained in:
Mitsukarenai 2015-10-13 17:59:55 +02:00
parent 35ac1d76b2
commit 85ebb70b74

View file

@ -35,6 +35,7 @@ class NumeramaBridge extends BridgeAbstract{
if($limit < 5) { if($limit < 5) {
$item = new \Item(); $item = new \Item();
$item->title = html_entity_decode(NumeramaStripCDATA($element->find('title', 0)->innertext)); $item->title = html_entity_decode(NumeramaStripCDATA($element->find('title', 0)->innertext));
$item->author = NumeramaStripCDATA($element->find('dc:creator', 0)->innertext);
$item->uri = NumeramaStripCDATA($element->find('guid', 0)->plaintext); $item->uri = NumeramaStripCDATA($element->find('guid', 0)->plaintext);
$item->timestamp = strtotime($element->find('pubDate', 0)->plaintext); $item->timestamp = strtotime($element->find('pubDate', 0)->plaintext);
$item->content = NumeramaExtractContent($item->uri); $item->content = NumeramaExtractContent($item->uri);