mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
fixed authors and added categories for HeiseBridge (#3376)
This commit is contained in:
parent
887f4bbe15
commit
ec091fb747
@ -161,7 +161,7 @@ class HeiseBridge extends FeedExpander
|
||||
$headerElements = $header->find('p, figure img, noscript img');
|
||||
$item['content'] = implode('', $headerElements);
|
||||
|
||||
$authors = $header->find('.a-creator__names .a-creator__name');
|
||||
$authors = $header->find('.creator__names .creator__name');
|
||||
if ($authors) {
|
||||
$item['author'] = implode(', ', array_map(function ($e) {
|
||||
return $e->plaintext;
|
||||
@ -169,6 +169,11 @@ class HeiseBridge extends FeedExpander
|
||||
}
|
||||
}
|
||||
|
||||
$categories = $article->find('.article-footer__topics ul.topics li.topics__item');
|
||||
foreach ($categories as $category) {
|
||||
$item['categories'][] = trim($category->plaintext);
|
||||
}
|
||||
|
||||
$content = $article->find('.article-content', 0);
|
||||
if ($content) {
|
||||
$contentElements = $content->find(
|
||||
|
Loading…
x
Reference in New Issue
Block a user