FIX: A feed entry may not necessarily have an id attribute

This commit is contained in:
Fabio Manganiello 2022-05-06 14:38:17 +02:00
parent 2cd7ae9513
commit 7a0e39111d

View file

@ -102,7 +102,7 @@ class RssPlugin(RunnablePlugin):
{ {
'feed_url': url, 'feed_url': url,
'feed_title': getattr(feed.feed, 'title', None), 'feed_title': getattr(feed.feed, 'title', None),
'id': entry.id, 'id': getattr(entry, 'id', None),
'url': entry.link, 'url': entry.link,
'published': datetime.datetime.fromtimestamp(time.mktime(entry.published_parsed)), 'published': datetime.datetime.fromtimestamp(time.mktime(entry.published_parsed)),
'title': entry.title, 'title': entry.title,