mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +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);
|
$dom = getSimpleHTMLDOM($url);
|
||||||
foreach ($dom->find('li.video-listing-entry') as $video) {
|
foreach ($dom->find('li.video-listing-entry') as $video) {
|
||||||
|
$datetime = $video->find('time', 0)->getAttribute('datetime');
|
||||||
|
|
||||||
$this->items[] = [
|
$this->items[] = [
|
||||||
'title' => $video->find('h3', 0)->plaintext,
|
'title' => $video->find('h3', 0)->plaintext,
|
||||||
'uri' => self::URI . $video->find('a', 0)->href,
|
'uri' => self::URI . $video->find('a', 0)->href,
|
||||||
|
'timestamp' => (new \DateTimeImmutable($datetime))->getTimestamp(),
|
||||||
'author' => $account . '@rumble.com',
|
'author' => $account . '@rumble.com',
|
||||||
'content' => defaultLinkTo($video, self::URI)->innertext,
|
'content' => defaultLinkTo($video, self::URI)->innertext,
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user