1
0
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:
Dag
2023-12-21 09:24:22 +01:00
committed by GitHub
parent 4c5cf89725
commit f40f997405
5 changed files with 22 additions and 14 deletions

View File

@@ -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) {