mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
[HeiseBridge] Properly extract authors (#2466)
This commit is contained in:
parent
9564e9291f
commit
cbef3b3360
@ -53,8 +53,9 @@ class HeiseBridge extends FeedExpander {
|
||||
}
|
||||
|
||||
private function addArticleToItem($item, $article) {
|
||||
if($author = $article->find('[itemprop="author"]', 0))
|
||||
$item['author'] = $author->plaintext;
|
||||
$authors = $article->find('.a-creator__names', 0)->find('.a-creator__name');
|
||||
if ($authors)
|
||||
$item['author'] = implode(', ', array_map(function ($e) { return $e->plaintext; }, $authors ));
|
||||
|
||||
$content = $article->find('div[class*="article-content"]', 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user