diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-07-07 22:52:21 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-07-07 22:52:21 +0200 |
commit | be2e4072dcc4a2324067a571096592bd075c63e4 (patch) | |
tree | a076c72f42f74c8840b82aa062c82540f193d5af /data/rbot | |
parent | 901564e1cb54985213014e376c6e7ab626505077 (diff) |
freshmeat plugin: fix feed retrieval
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/freshmeat.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/rbot/plugins/freshmeat.rb b/data/rbot/plugins/freshmeat.rb index 494cfb48..f7e163f0 100644 --- a/data/rbot/plugins/freshmeat.rb +++ b/data/rbot/plugins/freshmeat.rb @@ -87,7 +87,7 @@ class FreshmeatPlugin < Plugin max = params[:limit].to_i max = 8 if max > 8 begin - xml = @bot.httputil.get('http://images.feedstermedia.com/feedcache/ostg/freshmeat/fm-releases-global.xml') + xml = @bot.httputil.get('http://freshmeat.net/backend/fm-releases-global.xml') unless xml m.reply "freshmeat news parse failed" return @@ -107,8 +107,8 @@ class FreshmeatPlugin < Plugin title_width = 0 done = 0 doc.elements.each("*/channel/item") {|e| - desc = e.elements["description"].text - title = e.elements["title"].text + desc = e.elements["description"].text.ircify_html + title = e.elements["title"].text.ircify_html #title.gsub!(/\s+\(.*\)\s*$/, "") title.strip! title_width = title.length if title.length > title_width |