mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-25 17:31:25 +02:00
fix: a bunch of small changes in multiple bridges (#2644)
Mostly refactors.
This commit is contained in:
@@ -67,7 +67,13 @@ class TorrentGalaxyBridge extends BridgeAbstract {
|
||||
$item = array();
|
||||
$item['uri'] = self::URI . $identity->href;
|
||||
$item['title'] = $identity->plaintext;
|
||||
$item['timestamp'] = DateTime::createFromFormat('d/m/y H:i', $creadate)->format('U');
|
||||
|
||||
// todo: parse date strings such as '1Hr ago' etc.
|
||||
$createdAt = DateTime::createFromFormat('d/m/y H:i', $creadate);
|
||||
if ($createdAt) {
|
||||
$item['timestamp'] = $createdAt->format('U');
|
||||
}
|
||||
|
||||
$item['author'] = $authorid->plaintext;
|
||||
$item['content'] = <<<HTML
|
||||
<h1>{$identity->plaintext}</h1>
|
||||
|
Reference in New Issue
Block a user