diff --git a/radioco/apps/programmes/feeds.py b/radioco/apps/programmes/feeds.py index d8724f3..9072e5d 100755 --- a/radioco/apps/programmes/feeds.py +++ b/radioco/apps/programmes/feeds.py @@ -23,6 +23,7 @@ from filebrowser.base import FileObject from filebrowser.sites import get_default_site +from radioco.apps.global_settings.models import RadiocomConfiguration from radioco.apps.programmes.models import Programme, Podcast # TODO: @@ -68,6 +69,7 @@ def add_root_elements(self, handler): 'link': self.request.build_absolute_uri(self.programme.get_absolute_url()), } ) + handler.addQuickElement('itunes:author', RadiocomConfiguration.get_global().station_name) def add_item_elements(self, handler, item): super(iTunesFeed, self).add_item_elements(handler, item) @@ -75,7 +77,10 @@ def add_item_elements(self, handler, item): podcast = item["podcast"] handler.addQuickElement("itunes:subtitle", podcast.episode.title) handler.addQuickElement("itunes:summary", podcast.episode.summary_text) - handler.addQuickElement("itunes:duration", str(datetime.timedelta(seconds=podcast.duration))) + handler.addQuickElement("itunes:duration", str(datetime.timedelta(minutes=podcast.duration))) + handler.addQuickElement("itunes:season", str(podcast.episode.season)) + handler.addQuickElement("itunes:episode", str(podcast.episode.number_in_season)) + handler.addQuickElement("guid", str(podcast.episode.id)) class ProgrammeFeed(Feed):