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 20c5f30
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions feedparser/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,11 +773,11 @@ def _get_context(self):

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
# context.setdefault(prefix + "_detail", FeedParserDict())
# context[prefix + "_detail"][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 20c5f30

Please sign in to comment.