mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
Fixing author name in json feeds.
This commit is contained in:
parent
6286b798a7
commit
d7c8f5f79c
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class JSONFetcher:
|
|||
date_published = dateutil.parser.parse(pubdate)
|
||||
authors = item.get('authors', item.get('author', {}))
|
||||
if isinstance(authors, list):
|
||||
author_name = [author.get('name', "") for author in authors]
|
||||
author_name = ', '.join([author.get('name', "") for author in authors])
|
||||
else:
|
||||
author_name = authors.get('name', "")
|
||||
story = {
|
||||
|
|
Loading…
Add table
Reference in a new issue