mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 13:50:23 +02:00
[bridges] Change all occurrences of the Item object to array
This commit is contained in:
@@ -25,13 +25,13 @@ class ZatazBridge extends BridgeAbstract {
|
||||
private function getDetails($uri) {
|
||||
$html = $this->getSimpleHTMLDOM($uri) or exit;
|
||||
|
||||
$item = new \Item();
|
||||
$item = array();
|
||||
|
||||
$article = $html->find('.gdl-blog-full', 0);
|
||||
$item->uri = $uri;
|
||||
$item->title = $article->find('.blog-title', 0)->find('a', 0)->innertext;
|
||||
$item->content = $article->find('.blog-content', 0)->innertext;
|
||||
$item->timestamp = $this->getTimestampFromDate($article->find('.blog-date', 0)->find('a', 0)->href);
|
||||
$item['uri'] = $uri;
|
||||
$item['title'] = $article->find('.blog-title', 0)->find('a', 0)->innertext;
|
||||
$item['content'] = $article->find('.blog-content', 0)->innertext;
|
||||
$item['timestamp'] = $this->getTimestampFromDate($article->find('.blog-date', 0)->find('a', 0)->href);
|
||||
return $item;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user