From 4612cf3d2cbe712943f6656a814657aad3303a83 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 26 Jan 2016 11:44:55 +0100 Subject: fix rss feed --- src/main/groovy/org/xapek/yvesf/classifieds/Dumper.groovy | 6 ++++-- src/main/groovy/org/xapek/yvesf/classifieds/Model.groovy | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/groovy/org/xapek/yvesf/classifieds/Dumper.groovy b/src/main/groovy/org/xapek/yvesf/classifieds/Dumper.groovy index 017cdf3..0d53c08 100644 --- a/src/main/groovy/org/xapek/yvesf/classifieds/Dumper.groovy +++ b/src/main/groovy/org/xapek/yvesf/classifieds/Dumper.groovy @@ -11,12 +11,14 @@ class Dumper { rss(version: '2.0') { channel { title('Glocals') + description('glocal classifieds feed') } classifiedList.each { Classified classified -> item { title("${classified.type} - ${classified.title} - ${classified.composedLocation}") - guid(classified.id) - author(classified.mem_name) + guid(classified.link) + link(classified.link) + author("${classified.mem_name}@noemail.local") description(getDescription(classified) + classified.description) } } diff --git a/src/main/groovy/org/xapek/yvesf/classifieds/Model.groovy b/src/main/groovy/org/xapek/yvesf/classifieds/Model.groovy index 6303d3e..35aafdf 100644 --- a/src/main/groovy/org/xapek/yvesf/classifieds/Model.groovy +++ b/src/main/groovy/org/xapek/yvesf/classifieds/Model.groovy @@ -60,6 +60,10 @@ class Model { } } + String getLink() { + return "http://www.glocals.com/classifieds/housing-and-real-estate/${id}.htm" + } + String getComposedLocation() { return location + (city != location ? ', ' + city : '') } -- cgit v1.2.1