1
0
Fork 0
forked from blallo/rss-bridge

Fix tag name for timestamp

This commit is contained in:
logmanoriginal 2016-08-02 11:31:17 +02:00
parent 371a52e2b9
commit 5189741c7b

View file

@ -17,7 +17,7 @@ class BastaBridge extends BridgeAbstract{
$item = new \Item();
$item->title = $element->find('title', 0)->innertext;
$item->uri = $element->find('guid', 0)->plaintext;
$item->timestamp = strtotime($element->find('pubDate', 0)->plaintext);
$item->timestamp = strtotime($element->find('dc:date', 0)->plaintext);
$item->content = $this->file_get_html($item->uri)->find('div.texte', 0)->innertext;
$this->items[] = $item;
$limit++;