1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-08 01:26:31 +02:00

refactor: deprecate FeedItem constructor (#4201)

* fix: bug in prior commit

* refactor: deprecate FeedItem constructor

* test: fix
This commit is contained in:
Dag
2024-08-08 03:43:26 +02:00
committed by GitHub
parent 2a96bf19b5
commit 6afd13eb06
11 changed files with 78 additions and 114 deletions

View File

@@ -107,10 +107,10 @@ class RutubeBridge extends BridgeAbstract
}
foreach ($videos as $video) {
$item = new FeedItem();
$item->setTitle($video->title);
$item->setURI($video->video_url);
$content = '<a href="' . $item->getURI() . '">';
$item = [];
$item['title'] = $video->title;
$item['uri'] = $video->video_url;
$content = '<a href="' . $video->video_url . '">';
$content .= '<img src="' . $video->thumbnail_url . '" />';
$content .= '</a><br/>';
$content .= nl2br(
@@ -122,9 +122,10 @@ class RutubeBridge extends BridgeAbstract
$video->description . ' '
)
);
$item->setTimestamp($video->created_ts);
$item->setAuthor($video->author->name);
$item->setContent($content);
$item['timestamp'] = $video->created_ts;
$item['author'] = $video->author->name;
$item['content'] = $content;
$this->items[] = $item;
}
}