mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-10 17:08:47 +00:00
fix(rumble): add timestamp to items (#3485)
This commit is contained in:
parent
84501cfc00
commit
354317d010
@ -40,9 +40,12 @@ class RumbleBridge extends BridgeAbstract
|
||||
|
||||
$dom = getSimpleHTMLDOM($url);
|
||||
foreach ($dom->find('li.video-listing-entry') as $video) {
|
||||
$datetime = $video->find('time', 0)->getAttribute('datetime');
|
||||
|
||||
$this->items[] = [
|
||||
'title' => $video->find('h3', 0)->plaintext,
|
||||
'uri' => self::URI . $video->find('a', 0)->href,
|
||||
'timestamp' => (new \DateTimeImmutable($datetime))->getTimestamp(),
|
||||
'author' => $account . '@rumble.com',
|
||||
'content' => defaultLinkTo($video, self::URI)->innertext,
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user