mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-11 02:54:10 +02:00
fix: various small fixes (#3853)
This commit is contained in:
@@ -9,8 +9,7 @@ class CarThrottleBridge extends BridgeAbstract
|
||||
|
||||
public function collectData()
|
||||
{
|
||||
$news = getSimpleHTMLDOMCached(self::URI . 'news')
|
||||
or returnServerError('could not retrieve page');
|
||||
$news = getSimpleHTMLDOMCached(self::URI . 'news');
|
||||
|
||||
$this->items[] = [];
|
||||
|
||||
@@ -22,8 +21,7 @@ class CarThrottleBridge extends BridgeAbstract
|
||||
$item['uri'] = self::URI . $titleElement->getAttribute('href');
|
||||
$item['title'] = $titleElement->innertext;
|
||||
|
||||
$articlePage = getSimpleHTMLDOMCached($item['uri'])
|
||||
or returnServerError('could not retrieve page');
|
||||
$articlePage = getSimpleHTMLDOMCached($item['uri']);
|
||||
|
||||
$authorDiv = $articlePage->find('div.author div');
|
||||
if ($authorDiv) {
|
||||
|
Reference in New Issue
Block a user