mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-14 06:39:01 +02:00
[NordbayernBridge] fill item categories if available (#4338)
This commit is contained in:
parent
086ef7f8a7
commit
e3260ff529
1 changed files with 7 additions and 0 deletions
|
@ -163,6 +163,13 @@ class NordbayernBridge extends BridgeAbstract
|
||||||
$item['content'] .= $this->getUseFullContent($content);
|
$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();
|
$article->clear();
|
||||||
return $item;
|
return $item;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue