mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-16 23:29:56 +03:00
added article categories for CaschyBridge (#3379)
* added article categories * whitespace
This commit is contained in:
parent
a1b6bca581
commit
f26808d22c
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,11 @@ class CaschyBridge extends FeedExpander
|
|||
// reload html, as remove() is buggy
|
||||
$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);
|
||||
$item['content'] = $content;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue