From e3260ff529afde368eaf9503d348d29159bb0fbe Mon Sep 17 00:00:00 2001 From: Sebastian Wolf <117176763+swofl@users.noreply.github.com> Date: Sat, 23 Nov 2024 19:19:20 +0100 Subject: [PATCH] [NordbayernBridge] fill item categories if available (#4338) --- bridges/NordbayernBridge.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bridges/NordbayernBridge.php b/bridges/NordbayernBridge.php index 48157921..94319e2b 100644 --- a/bridges/NordbayernBridge.php +++ b/bridges/NordbayernBridge.php @@ -163,6 +163,13 @@ class NordbayernBridge extends BridgeAbstract $item['content'] .= $this->getUseFullContent($content); } + $categories = $article->find('[class=themen]', 0); + if ($categories) { + $item['categories'] = []; + foreach ($categories->find('a') as $category) { + $item['categories'][] = $category->innertext; + } + } $article->clear(); return $item;