diff options
author | Raine Virta <rane@kapsi.fi> | 2009-12-07 13:09:52 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-12-21 10:30:43 +0100 |
commit | 11e8895ca5888dc32ca76ec8b17480cd37810ece (patch) | |
tree | d9fbf7d44f24b53c368a77ddbf39903d56d27dbb /data | |
parent | 86417408ec195894e61be3f2536bde23e52ea398 (diff) |
lastfm: remove dashes from Spotify queries
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/lastfm.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |