lib/rapgenius/artist.rb in rapgenius-1.0.4 vs lib/rapgenius/artist.rb in rapgenius-1.0.5

- old
+ new

@@ -29,20 +29,18 @@ def url response["url"] end def description - @description ||= response["description"]["dom"]["children"].map do |node| - parse_description(node) - end.flatten.join("") + @description ||= response["description"]["plain"] end - # You seem to be able to load 25 songs at a time for an artist. I haven't + # You seem to be able to load 20 songs at a time for an artist. I haven't # found a way to vary the number you get back from the query, but you can - # paginate through in blocks of 25 songs. + # paginate through in blocks of 20 songs. def songs(options = {page: 1}) songs_url = "/artists/#{@id}/songs/?page=#{options[:page]}" - + fetch(songs_url)["response"]["songs"].map do |song| Song.new( artist: Artist.new( name: song["primary_artist"]["name"], id: song["primary_artist"]["id"],