FIX: Search with category, lastfm lib requests, play button
This commit is contained in:
@@ -27,7 +27,11 @@ module LastFM
|
||||
|
||||
# return: albums ( name, mbid, album url, image urls ( different sizes ) ) ordered by popularity
|
||||
def self.getTopAlbums artist, limit = nil, page = nil
|
||||
artist_request "getTopAlbums", "topalbums", artist, limit, page
|
||||
@albums = artist_request "getTopAlbums", "topalbums", artist, limit, page
|
||||
if @albums["@attr"].total.to_i == 1
|
||||
@albums.album = [@albums.album] # wrap with Array
|
||||
end
|
||||
@albums
|
||||
end
|
||||
|
||||
def self.getImages artist, limit = nil
|
||||
|
||||
Reference in New Issue
Block a user