summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/rss.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins/rss.rb')
-rw-r--r--data/rbot/plugins/rss.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index 9d48108e..77d897ca 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -1035,10 +1035,13 @@ class RSSFeedsPlugin < Plugin
desc = "(?)"
end
- link = item.link.href rescue item.link.chomp rescue nil
+ link = item.link.href rescue item.link rescue nil
+ link.strip! if link
category = select_nonempty((item.category.content rescue nil), (item.dc_subject rescue nil))
+ category.strip! if category
author = select_nonempty((item.author.name.content rescue nil), (item.dc_creator rescue nil), (item.author rescue nil))
+ author.strip! if author
line1 = nil
line2 = nil