summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-07-07 22:52:21 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-07-07 22:52:21 +0200
commitbe2e4072dcc4a2324067a571096592bd075c63e4 (patch)
treea076c72f42f74c8840b82aa062c82540f193d5af /data/rbot
parent901564e1cb54985213014e376c6e7ab626505077 (diff)
freshmeat plugin: fix feed retrieval
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/freshmeat.rb6
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