Musix 0.23 → 0.24
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/musix.rb +2 -2
- metadata +2 -2
data/lib/musix.rb
CHANGED
@@ -45,8 +45,8 @@ module Musix
|
|
45
45
|
|
46
46
|
private
|
47
47
|
def self.search(type, query, page)
|
48
|
-
result = Spotify::get("/search/1/#{type}", :query => { :q => query, :page => page })
|
49
|
-
return result.fetch("#{type}s"
|
48
|
+
result = Spotify::get("/search/1/#{type}", :query => { :q => query, :page => page })
|
49
|
+
return result.fetch("#{type}s") unless result.nil?
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|