We don't want to crash if the source feed is missing some data that
the user expects, or if the user just hasn't had the time to adjust
the name-format config.
Signed-off-by: W. Trevor King <wking@tremily.us>
"""
if not self.name_format:
return ''
- data = {'feed': self}
+ data = {
+ 'feed': self,
+ 'feed-title': '<feed title>',
+ 'author': '<author>',
+ 'publisher': '<publisher>',
+ }
feed = parsed.feed
data['feed-title'] = feed.get('title', '')
for x in [entry, feed]: