]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
lastfm plugin: perfectionism run
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 6 Apr 2007 08:36:56 +0000 (08:36 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 6 Apr 2007 08:36:56 +0000 (08:36 +0000)
data/rbot/plugins/lastfm.rb

index f87e524591235b85f08a465e94f6ad6bdde9e418..2394d3f56c53ec2eec162043085cb6c663101449 100644 (file)
@@ -69,14 +69,14 @@ class LastFmPlugin < Plugin
           pre_events.each { |day, month, year, url_who, who, url_where, where, how_many|
             date = Time.utc(year.to_i, month.to_i, day.to_i)
             url = LASTFM + url_who
-            if who.match(/<strong>(.*?)<\/strong>(.*)?/)
+            if who.match(/<strong>(.*?)<\/strong>(.+)?/)
               artist = Bold + $1.ircify_html + Bold
-              artist << ": " << $2.ircify_html if $2
+              artist << ", " << $2.ircify_html if $2
             else
               debug "who: #{who.inspect}"
               artist = who.ircify_html
             end
-            if where.match(/<strong>(.*?)<\/strong>(.*)?/)
+            if where.match(/<strong>(.*?)<\/strong>(.+)?/)
               loc = Bold + $1.ircify_html + Bold
               loc << ", " << $2.ircify_html if $2
             else