1
0
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:
logmanoriginal
2016-08-22 18:55:59 +02:00
parent 1f3361c6b4
commit bf0a9d754e
130 changed files with 844 additions and 844 deletions

View File

@@ -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;
}
}