mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-24 23:37:18 +00:00
added article categories for CaschyBridge (#3379)
* added article categories * whitespace
This commit is contained in:
parent
a1b6bca581
commit
f26808d22c
@ -61,6 +61,11 @@ class CaschyBridge extends FeedExpander
|
|||||||
// reload html, as remove() is buggy
|
// reload html, as remove() is buggy
|
||||||
$article = str_get_html($article->outertext);
|
$article = str_get_html($article->outertext);
|
||||||
|
|
||||||
|
$categories = $article->find('div.post-category a');
|
||||||
|
foreach ($categories as $category) {
|
||||||
|
$item['categories'][] = $category->plaintext;
|
||||||
|
}
|
||||||
|
|
||||||
$content = $article->find('div.entry-inner', 0);
|
$content = $article->find('div.entry-inner', 0);
|
||||||
$item['content'] = $content;
|
$item['content'] = $content;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user