mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-18 06:11:33 +02:00
feat: add vendor http header to cached responses (#4040)
This commit is contained in:
@@ -35,7 +35,12 @@ class MediapartBlogsBridge extends BridgeAbstract
|
||||
|
||||
$item['title'] = $item_title->innertext;
|
||||
$item['uri'] = self::BASE_URI . trim($item_title->href);
|
||||
$item['author'] = $element->find('.author .subscriber', 0)->innertext;
|
||||
|
||||
$author = $element->find('.author .subscriber', 0);
|
||||
if ($author) {
|
||||
$item['author'] = $author->innertext;
|
||||
}
|
||||
|
||||
$item['content'] = $item_divs[count($item_divs) - 2] . $item_divs[count($item_divs) - 1];
|
||||
$item['timestamp'] = strtotime($element->find('.author time', 0)->datetime);
|
||||
|
||||
|
Reference in New Issue
Block a user