]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit - data/rbot/plugins/rss.rb
rss plugin: parseRss returns the number of found items
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 25 Jan 2009 23:47:04 +0000 (00:47 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 25 Jan 2009 23:54:50 +0000 (00:54 +0100)
commitdaf0eb2988d71f347b236ba77e43c51735ec2d3f
tree07756236a23ad98323da84bfeab7e09b867aab95
parent97c72c8f70889a3466d26f295b554b92ca37d146
rss plugin: parseRss returns the number of found items

Change the parseRss routine to return the number of found items, or nil
in case of error. This helps clearly differentiate between empty feeds
(which are still legit) and b0rked feeds.

This change in logic does not alter the fact that a feed update with no
items will not wipe existing old feed items.
data/rbot/plugins/rss.rb