summaryrefslogtreecommitdiff
path: root/sample/rss/blend.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/rss/blend.rb')
-rwxr-xr-xsample/rss/blend.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/sample/rss/blend.rb b/sample/rss/blend.rb
index 2fbd6efed6..7d6b239613 100755
--- a/sample/rss/blend.rb
+++ b/sample/rss/blend.rb
@@ -64,6 +64,12 @@ rss = RSS::Maker.make("1.0") do |maker|
item.setup_maker(maker.items)
end
end
+
+ maker.items.each do |item|
+ item.title.content ||= "UNKNOWN"
+ item.link ||= "UNKNOWN"
+ end
+
maker.items.do_sort = true
maker.items.max_size = 15
end