mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-11 19:14:09 +02:00
fix: various small fixes (#3578)
This commit is contained in:
@@ -50,7 +50,12 @@ class RoadAndTrackBridge extends BridgeAbstract
|
||||
}
|
||||
|
||||
$item['author'] = $article->find('.byline-name', 0)->innertext ?? '';
|
||||
$item['timestamp'] = strtotime($article->find('.content-info-date', 0)->getAttribute('datetime'));
|
||||
|
||||
$contentInfoDate = $article->find('.content-info-date', 0);
|
||||
if ($contentInfoDate) {
|
||||
$datetime = $contentInfoDate->getAttribute('datetime');
|
||||
$item['timestamp'] = strtotime($datetime);
|
||||
}
|
||||
|
||||
$content = $article->find('.content-container', 0);
|
||||
if ($content->find('.content-rail', 0) !== null) {
|
||||
|
Reference in New Issue
Block a user