mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-27 11:50:12 +02:00
[NordbayernBridge] fill item categories if available (#4338)
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user