1
0
Fork 0

Removing unnecessery self reference

This commit is contained in:
Gregory Eremin 2012-07-09 02:50:07 +04:00
parent 5406d5e97c
commit 12d31c63c2
1 changed files with 4 additions and 4 deletions

View File

@ -25,11 +25,11 @@ module MusicBrainz
xml.css("artist-list > artist").each do |a|
artists << {
: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,
:desc => self.safe_get_value(a, "disambiguation"),
:type => self.safe_get_attr(a, nil, "type"),
:mbid => self.safe_get_attr(a, nil, "id"),
:desc => safe_get_value(a, "disambiguation"),
:type => safe_get_attr(a, nil, "type"),
:mbid => safe_get_attr(a, nil, "id"),
:aliases => a.css("alias-list > alias").map { |item| item.text }
}
end