From ed4791438c6c4ba2bea48f38316152fdf6afa764 Mon Sep 17 00:00:00 2001 From: dmitry kim Date: Fri, 18 Jul 2008 15:51:52 +0400 Subject: * (plugins/rss) more item uid calculation fixes --- data/rbot/plugins/rss.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'data/rbot/plugins/rss.rb') diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index fea6f352..9d48108e 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -259,7 +259,8 @@ class RSSFeedsPlugin < Plugin # only the guid/link is accounted for. def block_rescue(df = nil, &block) - block.call rescue nil + v = block.call rescue nil + (String === v && '' != v) ? v : nil end def make_uid(item) @@ -280,6 +281,7 @@ class RSSFeedsPlugin < Plugin block_rescue do item.title end ) end + # debug "taking hash of #{uid.inspect}" uid.hash end -- cgit v1.2.3