diff options
-rw-r--r-- | data/rbot/plugins/lastfm.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb index 027551cb..f5cd3ec7 100644 --- a/data/rbot/plugins/lastfm.rb +++ b/data/rbot/plugins/lastfm.rb @@ -18,7 +18,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}") + url = "http://ws.spotify.com/#{service}/1/#{method}?q=#{CGI.escape(query)}&page=#{page}" xml = Irc::Utils.bot.httputil.get_response(url).body return REXML::Document.new(xml).root end |