Revision: 10485
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 1, 2009 19:17 by kuccello
Initial Code
def broadcastInstance = Broadcast.findByUid(params.broadcast) if(broadcastInstance){ def episodes = Episode.findAllByBroadcastAndReleaseDateLessThan(broadcastInstance,new Date(),[sort:'releaseDate',order:'desc',max:10]) 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}" ] image = new URL(g.createLinkTo(dir:"images/${broadcastInstance.uid}",file:'poster.png',absolute:true)) author = "Lifeforce TV" subtitle = "${broadcastInstance.shortDescription}" ownerName = "Lifeforce Entertainment" ownerEmailAddress = "[email protected]" } Episode.findAllByBroadcastAndReleaseDateLessThan(broadcastInstance,new Date(),[sort:'releaseDate',order:'desc']).each{ episode -> 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) }catch(e){ keywords = [] } explicit = episode.explicit } content(episode.longDescription) } } } }
Initial URL
Initial Description
Initial Title
Grails Feeds Plugin Error
Initial Tags
Initial Language
Groovy