fix missing field on rss

This commit is contained in:
Markos Gogoulos 2020-12-25 15:25:53 +02:00
parent d2bf457def
commit 10d5d8f615

View File

@ -72,7 +72,7 @@ class IndexRSSFeed(Feed):
return item.title return item.title
def item_description(self, item): def item_description(self, item):
return item.summary return item.description
def item_author_name(self, item): def item_author_name(self, item):
return item.user.username return item.user.username
@ -89,7 +89,7 @@ class IndexRSSFeed(Feed):
def item_extra_kwargs(self, item): def item_extra_kwargs(self, item):
item = { item = {
"media:title": item.title, "media:title": item.title,
"media:description": item.summary, "media:description": item.description,
"content_width": 720, "content_width": 720,
"thumbnail_url": f"{settings.SSL_FRONTEND_HOST}/{item.poster_url}", "thumbnail_url": f"{settings.SSL_FRONTEND_HOST}/{item.poster_url}",
"content_url": f"{settings.SSL_FRONTEND_HOST}/{item.get_absolute_url()}", "content_url": f"{settings.SSL_FRONTEND_HOST}/{item.get_absolute_url()}",
@ -144,7 +144,7 @@ class SearchRSSFeed(Feed):
return item.title return item.title
def item_description(self, item): def item_description(self, item):
return item.summary return item.description
def item_author_name(self, item): def item_author_name(self, item):
return item.user.username return item.user.username
@ -161,7 +161,7 @@ class SearchRSSFeed(Feed):
def item_extra_kwargs(self, item): def item_extra_kwargs(self, item):
item = { item = {
"media:title": item.title, "media:title": item.title,
"media:description": item.summary, "media:description": item.description,
"content_width": 720, "content_width": 720,
"thumbnail_url": f"{settings.SSL_FRONTEND_HOST}/{item.poster_url}", "thumbnail_url": f"{settings.SSL_FRONTEND_HOST}/{item.poster_url}",
"content_url": f"{settings.SSL_FRONTEND_HOST}/{item.get_absolute_url()}", "content_url": f"{settings.SSL_FRONTEND_HOST}/{item.get_absolute_url()}",