# 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)
block_rescue do item.title end
)
end
+ # debug "taking hash of #{uid.inspect}"
uid.hash
end
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