diff --git a/VERSION b/VERSION index b300caa..c8a5397 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4.4 \ No newline at end of file +0.4.5 \ No newline at end of file diff --git a/lib/models/music_brainz/artist.rb b/lib/models/music_brainz/artist.rb index 312e309..e74358b 100644 --- a/lib/models/music_brainz/artist.rb +++ b/lib/models/music_brainz/artist.rb @@ -22,7 +22,7 @@ module MusicBrainz def self.parse_xml xml @artist = MusicBrainz::Artist.new @artist.id = xml.css('artist').attr('id').value - @artist.type = xml.css('artist').attr('type').value unless xml.css('artist').empty? or xml.css('artist').attr('type').empty? + @artist.type = xml.css('artist').attr('type').value unless xml.css('artist').nil? or xml.css('artist').attr('type').nil? @artist.name = xml.css('artist > name').text @artist.country = xml.css('artist > country').text unless xml.css('artist > country').empty? @artist.date_begin = xml.css('artist > life-span > begin').text unless xml.css('artist > life-span > begin').empty?