diff options
author | dmitry kim <jason@nichego.net> | 2008-07-18 15:51:52 +0400 |
---|---|---|
committer | dmitry kim <jason@nichego.net> | 2008-07-18 15:52:24 +0400 |
commit | ed4791438c6c4ba2bea48f38316152fdf6afa764 (patch) | |
tree | 464fc19bed19a7ba8c9e0f10f27284d66bd5b66a /data/rbot | |
parent | 95b38d010521c5d6b781af4ecd60586a33f8e53f (diff) |
* (plugins/rss) more item uid calculation fixes
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/rss.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 |