mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
[bridges] Change all occurrences of the Item object to array
This commit is contained in:
parent
1f3361c6b4
commit
bf0a9d754e
130 changed files with 844 additions and 844 deletions
|
@ -61,14 +61,14 @@ class YoutubeBridge extends BridgeAbstract {
|
|||
}
|
||||
|
||||
private function ytBridgeAddItem($vid, $title, $author, $desc, $time) {
|
||||
$item = new \Item();
|
||||
$item->id = $vid;
|
||||
$item->title = $title;
|
||||
$item->author = $author;
|
||||
$item->timestamp = $time;
|
||||
$item->uri = $this->uri.'watch?v='.$vid;
|
||||
$item = array();
|
||||
$item['id'] = $vid;
|
||||
$item['title'] = $title;
|
||||
$item['author'] = $author;
|
||||
$item['timestamp'] = $time;
|
||||
$item['uri'] = $this->uri.'watch?v='.$vid;
|
||||
$thumbnailUri = str_replace('/www.', '/img.', $this->uri).'vi/'.$vid.'/0.jpg';
|
||||
$item->content = '<a href="'.$item->uri.'"><img src="'.$thumbnailUri.'" /></a><br />'.$desc;
|
||||
$item['content'] = '<a href="'.$item['uri'].'"><img src="'.$thumbnailUri.'" /></a><br />'.$desc;
|
||||
$this->items[] = $item;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue