summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-08 23:49:15 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-08 23:49:15 +0000
commitbd1fae001de8da52f3949c06e1534a233c8073d0 (patch)
tree886ac1ec8bcc1b817fd14f20e0c8bf1cc637575b /data
parent35710b5c7888558ce306652e2d6f7f64526532c3 (diff)
rss plugin: parse feed on first retrieval; add some more debug
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/rss.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index fbe1c12f..d8497b97 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -688,6 +688,7 @@ class RSSFeedsPlugin < Plugin
oids = Set.new feed.items.map { |item|
uid = RSS.item_uid_for_bot(item, uid_opts)
otxt << item.to_s
+ debug [uid, item].inspect
debug [uid, otxt.last].inspect
uid
}
@@ -698,6 +699,10 @@ class RSSFeedsPlugin < Plugin
else
debug "Checking if new items are available for #{feed}"
failures -= 1 if failures > 0
+ # debug "Old:"
+ # debug oldxml
+ # debug "New:"
+ # debug feed.xml
dispItems = feed.items.reject { |item|
uid = RSS.item_uid_for_bot(item, uid_opts)