mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-10 18:44:04 +02:00
[bridges] Change all occurrences of the Item object to array
This commit is contained in:
@@ -54,11 +54,11 @@ class PickyWallpapersBridge extends BridgeAbstract {
|
||||
|
||||
foreach($html->find('.items li img') as $element) {
|
||||
|
||||
$item = new \Item();
|
||||
$item->uri = str_replace('www', 'wallpaper', $baseUri).'/'.$this->resolution.'/'.basename($element->src);
|
||||
$item->timestamp = time();
|
||||
$item->title = $element->alt;
|
||||
$item->content = $item->title.'<br><a href="'.$item->uri.'">'.$element.'</a>';
|
||||
$item = array();
|
||||
$item['uri'] = str_replace('www', 'wallpaper', $baseUri).'/'.$this->resolution.'/'.basename($element->src);
|
||||
$item['timestamp'] = time();
|
||||
$item['title'] = $element->alt;
|
||||
$item['content'] = $item['title'].'<br><a href="'.$item['uri'].'">'.$element.'</a>';
|
||||
$this->items[] = $item;
|
||||
|
||||
$num++;
|
||||
|
Reference in New Issue
Block a user