mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-05 17:19:37 +00:00
added article categories for GolemBridge (#3377)
* added article categories for GolemBridge * tabs are bad, spaces good * fixed duplicate categories on multi-page articles
This commit is contained in:
parent
ec091fb747
commit
a1b6bca581
@ -88,6 +88,14 @@ class GolemBridge extends FeedExpander
|
|||||||
$item['author'] = $author->plaintext;
|
$item['author'] = $author->plaintext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$categories = $articlePage->find('ul.tags__list li');
|
||||||
|
foreach ($categories as $category) {
|
||||||
|
$trimmedcategories[] = trim(html_entity_decode($category->plaintext));
|
||||||
|
}
|
||||||
|
if (isset($trimmedcategories)) {
|
||||||
|
$item['categories'] = array_unique($trimmedcategories);
|
||||||
|
}
|
||||||
|
|
||||||
$item['content'] .= $this->extractContent($articlePage);
|
$item['content'] .= $this->extractContent($articlePage);
|
||||||
|
|
||||||
// next page
|
// next page
|
||||||
|
Loading…
Reference in New Issue
Block a user