/ Published in: Groovy
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def url = "http://${request.getHeader('host')}${grailsApplication.parentContext.servletContext.contextPath}/${broadcastInstance.uid}" render(feedType:"rss", feedVersion:"2.0") { title = "${broadcastInstance.title} (Episodes)" link = "${url}/rss" description = "${broadcastInstance.longDescription}" iTunes { summary = "${broadcastInstance.longDescription}" keywords = "${broadcastInstance.keywords}" categories = [ "${broadcastInstance.genera}" ] author = "Lifeforce TV" subtitle = "${broadcastInstance.shortDescription}" ownerName = "Lifeforce Entertainment" ownerEmailAddress = "[email protected]" } entry(episode.title) { title = episode.title link = "${url}/episode/${episode.uid}" //enclosure(type: 'audio/mp3', // url: episode.fileUrl, // length: episode.fileLength) enclosure(type: 'audio/mp3', url: 'woot', length: 0) publishedDate = episode.releaseDate // do the itunes Meta iTunes { author = broadcastInstance.attribution summary = episode.longDescription durationText = episode.runningTime try{ keywords = episode.split(",")?.remove(0) keywords = [] } explicit = episode.explicit } content(episode.longDescription) } } } }