Commit df7e6008 authored by fred's avatar fred

include emission name as item prefix in global podcast feed

parent 9e4ae3d1
......@@ -721,8 +721,8 @@ class PodcastsFeed(Feed):
def item_title(self, item):
if item.fragment:
return '%s - %s' % (item.title, item.episode.title)
return item.episode.title
return '[%s] %s - %s' % (item.episode.emission.title, item.title, item.episode.title)
return '[%s] %s' % (item.episode.emission.title, item.episode.title)
def item_link(self, item):
return item.episode.get_absolute_url()
......@@ -783,6 +783,11 @@ class EmissionPodcastsFeed(PodcastsFeed):
self.emission = Emission.objects.get(slug=kwargs.get('slug'))
return super(EmissionPodcastsFeed, self).__call__(request, *args, **kwargs)
def item_title(self, item):
if item.fragment:
return '%s - %s' % (item.title, item.episode.title)
return item.episode.title
@property
def title(self):
return self.emission.title
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment