mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00: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');
|
$headerElements = $header->find('p, figure img, noscript img');
|
||||||
$item['content'] = implode('', $headerElements);
|
$item['content'] = implode('', $headerElements);
|
||||||
|
|
||||||
$authors = $header->find('.a-creator__names .a-creator__name');
|
$authors = $header->find('.creator__names .creator__name');
|
||||||
if ($authors) {
|
if ($authors) {
|
||||||
$item['author'] = implode(', ', array_map(function ($e) {
|
$item['author'] = implode(', ', array_map(function ($e) {
|
||||||
return $e->plaintext;
|
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);
|
$content = $article->find('.article-content', 0);
|
||||||
if ($content) {
|
if ($content) {
|
||||||
$contentElements = $content->find(
|
$contentElements = $content->find(
|
||||||
|
Loading…
Reference in New Issue
Block a user