From bd1fae001de8da52f3949c06e1534a233c8073d0 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 8 Apr 2007 23:49:15 +0000 Subject: rss plugin: parse feed on first retrieval; add some more debug --- data/rbot/plugins/rss.rb | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.3