1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-16 14:36:23 +02:00

fix(rumble): add timestamp to items (#3485)

This commit is contained in:
Dag
2023-07-05 05:41:33 +02:00
committed by GitHub
parent 84501cfc00
commit 354317d010

View File

@@ -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,
];