Artist type fix
This commit is contained in:
parent
aab8c7a494
commit
d7000eebfb
|
@ -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
|
||||
@artist.type = xml.css('artist').attr('type').value unless xml.css('artist').empty? or xml.css('artist').attr('type').empty?
|
||||
@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?
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = %q{musicbrainz}
|
||||
s.version = "0.4.3"
|
||||
s.version = "0.4.4"
|
||||
|
||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||
s.authors = ["Gregory Eremin"]
|
||||
s.date = %q{2011-09-14}
|
||||
s.date = %q{2011-09-18}
|
||||
s.description = %q{MusicBrainz Web Service wrapper with ActiveRecord-style models}
|
||||
s.email = %q{magnolia_fan@me.com}
|
||||
s.extra_rdoc_files = [
|
||||
|
|
Loading…
Reference in New Issue