mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-14 04:24:05 +02:00
[bridges] Change all occurrences of the Item object to array
This commit is contained in:
@@ -55,7 +55,7 @@ class AllocineFRBridge extends BridgeAbstract{
|
||||
|
||||
foreach($html->find('figure.media-meta-fig') as $element)
|
||||
{
|
||||
$item = new Item();
|
||||
$item = array();
|
||||
|
||||
$title = $element->find('div.titlebar h3.title a', 0);
|
||||
$content = trim($element->innertext);
|
||||
@@ -67,9 +67,9 @@ class AllocineFRBridge extends BridgeAbstract{
|
||||
$content = str_replace('href="/', 'href="http://www.allocine.fr/', $content);
|
||||
$content = str_replace('src=\'/', 'src=\'http://www.allocine.fr/', $content);
|
||||
$content = str_replace('href=\'/', 'href=\'http://www.allocine.fr/', $content);
|
||||
$item->content = $content;
|
||||
$item->title = trim($title->innertext);
|
||||
$item->uri = "http://www.allocine.fr" . $title->href;
|
||||
$item['content'] = $content;
|
||||
$item['title'] = trim($title->innertext);
|
||||
$item['uri'] = "http://www.allocine.fr" . $title->href;
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user