lkiesow / python-feedgen

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

RSS: use the <dc:creator> tag if author's name but no email address is given #57

Closed stbisplinghoff closed 7 years ago

stbisplinghoff commented 7 years ago

If the author does not want to publish his mail address but only his name, the tag cannot be used according to the RSS 2.0 spec. It is recommended to use the tag if only the name is given.

FeedEntry.author() is adjusted to use the __rss_dcCreator value instead of __rss_author if the "email" key is not set.

lkiesow commented 7 years ago

DublinCore is not and should not be part of the core feed. You can already set DC elements as Feed attributes if you use the dublincore extension:

fg.load_extension('dc')
fg.dc.dc_creator('Lars Kiesow'