From 11e8895ca5888dc32ca76ec8b17480cd37810ece Mon Sep 17 00:00:00 2001 From: Raine Virta Date: Mon, 7 Dec 2009 13:09:52 +0200 Subject: lastfm: remove dashes from Spotify queries --- data/rbot/plugins/lastfm.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'data') diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb index 77584941..027551cb 100644 --- a/data/rbot/plugins/lastfm.rb +++ b/data/rbot/plugins/lastfm.rb @@ -17,6 +17,7 @@ module Spotify def self.get(service, method, query, page=1) + query.tr!('-','') url = URI.escape("http://ws.spotify.com/#{service}/1/#{method}?q=#{query}&page=#{page}") xml = Irc::Utils.bot.httputil.get_response(url).body return REXML::Document.new(xml).root -- cgit v1.2.3