lkiesow / python-feedgen

Python module to generate ATOM feeds, RSS feeds and Podcasts.
https://feedgen.kiesow.be/
BSD 2-Clause "Simplified" License
723 stars 123 forks source link

disable author name in parenthesis if author name missing or empty #59

Closed lsh-0 closed 6 years ago

lsh-0 commented 7 years ago

The feed fails to render as rss if author 'name' key is missing from dict: ValueError: Data contains not all required keys, however, as the docs point out, in rss the author name isn't required, just their email address: Name is mandatory for ATOM, email is mandatory for RSS

adding the name key but leaving it empty still results in parenthesis being emitted: <author>user@example.org ()</author>

I understand the motivation behind requiring both, but not being able to disable the behaviour is annoying.

lsh-0 commented 6 years ago

:+1: