Removing unnecessery self reference
This commit is contained in:
parent
5406d5e97c
commit
12d31c63c2
@ -25,11 +25,11 @@ module MusicBrainz
|
|||||||
xml.css("artist-list > artist").each do |a|
|
xml.css("artist-list > artist").each do |a|
|
||||||
artists << {
|
artists << {
|
||||||
:name => a.first_element_child.text.gsub(/[`’]/, "'"),
|
:name => a.first_element_child.text.gsub(/[`’]/, "'"),
|
||||||
:sort_name => self.safe_get_value(a, "sort-name").gsub(/[`’]/, "'"),
|
:sort_name => safe_get_value(a, "sort-name").gsub(/[`’]/, "'"),
|
||||||
:weight => 0,
|
:weight => 0,
|
||||||
:desc => self.safe_get_value(a, "disambiguation"),
|
:desc => safe_get_value(a, "disambiguation"),
|
||||||
:type => self.safe_get_attr(a, nil, "type"),
|
:type => safe_get_attr(a, nil, "type"),
|
||||||
:mbid => self.safe_get_attr(a, nil, "id"),
|
:mbid => safe_get_attr(a, nil, "id"),
|
||||||
:aliases => a.css("alias-list > alias").map { |item| item.text }
|
:aliases => a.css("alias-list > alias").map { |item| item.text }
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user