podjango: Use feed title from database
This commit is contained in:
parent
968c0c4fba
commit
c6e531a01f
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ def for_podcast_feed_extra_kwargs(self, obj):
|
||||||
'iTunesExplicit': 'No',
|
'iTunesExplicit': 'No',
|
||||||
'iTunesBlock': 'No',
|
'iTunesBlock': 'No',
|
||||||
'iTunesImage': {'url': add_domain(self.current_site.domain, obj.icon.url, self.is_secure),
|
'iTunesImage': {'url': add_domain(self.current_site.domain, obj.icon.url, self.is_secure),
|
||||||
'title': 'The Corresponding Source (formerly Free as in Freedom)',
|
'title': obj.title,
|
||||||
'link': self.author_link,
|
'link': self.author_link,
|
||||||
'type': 'video/jpg'},
|
'type': 'video/jpg'},
|
||||||
'category': {'name': 'Government & Organizations', 'scheme': 'http://www.itunes.com/dtds/podcast-1.0.dtd',
|
'category': {'name': 'Government & Organizations', 'scheme': 'http://www.itunes.com/dtds/podcast-1.0.dtd',
|
||||||
|
@ -186,7 +186,6 @@ class iTunesFeedType(Rss201rev2Feed):
|
||||||
|
|
||||||
class CastFeed(CastFeedBase):
|
class CastFeed(CastFeedBase):
|
||||||
feed_type = iTunesFeedType
|
feed_type = iTunesFeedType
|
||||||
title = "The Corresponding Source (formerly Free as in Freedom)"
|
|
||||||
link = "/cast/"
|
link = "/cast/"
|
||||||
description = "A bi-weekly discussion of legal, policy, and other issues in the open source and software freedom community (including occasional interviews) from Brooklyn, New York, USA. Presented by Karen Sandler and Bradley M. Kuhn."
|
description = "A bi-weekly discussion of legal, policy, and other issues in the open source and software freedom community (including occasional interviews) from Brooklyn, New York, USA. Presented by Karen Sandler and Bradley M. Kuhn."
|
||||||
author_email = "podcast@faif.us"
|
author_email = "podcast@faif.us"
|
||||||
|
@ -206,6 +205,7 @@ class CastFeed(CastFeedBase):
|
||||||
|
|
||||||
def get_object(self, request, podcast_slug):
|
def get_object(self, request, podcast_slug):
|
||||||
self.podcast = Podcast.objects.get(slug=podcast_slug)
|
self.podcast = Podcast.objects.get(slug=podcast_slug)
|
||||||
|
self.title = self.podcast.title
|
||||||
return self.podcast
|
return self.podcast
|
||||||
|
|
||||||
def items(self, obj):
|
def items(self, obj):
|
||||||
|
|
Loading…
Reference in a new issue