diff options
Diffstat (limited to 'data/rbot/plugins/lib_spotify.rb')
-rw-r--r-- | data/rbot/plugins/lib_spotify.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/lib_spotify.rb b/data/rbot/plugins/lib_spotify.rb index a30157c6..24caf428 100644 --- a/data/rbot/plugins/lib_spotify.rb +++ b/data/rbot/plugins/lib_spotify.rb @@ -71,7 +71,8 @@ module ::Spotify def self.get(service, method, query, page=1) query.tr!('-','') url = "http://ws.spotify.com/#{service}/1/#{method}?q=#{CGI.escape(query)}&page=#{page}" - xml = Irc::Utils.bot.httputil.get_response(url).body + xml = Irc::Utils.bot.httputil.get(url) + raise unless xml return REXML::Document.new(xml).root end |