diff --git a/bridges/NordbayernBridge.php b/bridges/NordbayernBridge.php index 770876fb08f..f5e6622ad27 100644 --- a/bridges/NordbayernBridge.php +++ b/bridges/NordbayernBridge.php @@ -6,7 +6,7 @@ class NordbayernBridge extends BridgeAbstract { const NAME = 'Nordbayern'; const CACHE_TIMEOUT = 3600; const URI = 'https://www.nordbayern.de'; - const DESCRIPTION = 'Bridge for Bavarian reginoal news site nordbayern.de'; + const DESCRIPTION = 'Bridge for Bavarian regional news site nordbayern.de'; const PARAMETERS = array( array( 'region' => array( 'name' => 'region', @@ -82,6 +82,8 @@ private function handleArticle($link) { defaultLinkTo($article, self::URI); $item['uri'] = $link; + $item['author'] = $article->find('[class=article__author extrabold]', 0)->plaintext; + $item['timestamp'] = strtotime(str_replace('Uhr','', $article->find('[class=article__release]',0)->plaintext)); if ($article->find('h2', 0) == null) { $item['title'] = $article->find('h3', 0)->innertext; } else { @@ -121,7 +123,7 @@ private function handleArticle($link) { $item['content'] .= ''; } - // exclude police reports if descired + // exclude police reports if desired if($this->getInput('policeReports') || !str_contains($item['content'], 'Hier geht es zu allen aktuellen Polizeimeldungen.')) { $this->items[] = $item;