From de4f786b0c726380af825610da833e0dc76cf282 Mon Sep 17 00:00:00 2001 From: Brian Ge Date: Wed, 27 Jan 2021 14:41:23 +0200 Subject: [PATCH] Fix bug that overrides feed author with feed publisher --- feedparser/mixin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/feedparser/mixin.py b/feedparser/mixin.py index f305015b9..a0f3b2331 100644 --- a/feedparser/mixin.py +++ b/feedparser/mixin.py @@ -719,9 +719,9 @@ def _save_author(self, key, value, prefix='author'): context = self._get_context() context.setdefault(prefix + '_detail', FeedParserDict()) context[prefix + '_detail'][key] = value - self._sync_author_detail() - context.setdefault('authors', [FeedParserDict()]) - context['authors'][-1][key] = value + self._sync_author_detail(prefix) + context.setdefault('%ss' % prefix, [FeedParserDict()]) + context['%ss' % prefix][-1][key] = value def _save_contributor(self, key, value): context = self._get_context()