Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix bug that overrides feed author with feed publisher kurtmckee#262
  • Loading branch information
gaodeng committed Apr 24, 2024
1 parent a28913a commit 21cf70b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions feedparser/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,9 +775,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()
Expand Down

0 comments on commit 21cf70b

Please sign in to comment.