Replaced the custom weighting calculation by making use of MusicBrainz scoring scheme.

This commit is contained in:
Sander Nieuwenhuizen
2012-09-05 21:17:31 +02:00
parent 88c4128d82
commit 0b68c0c570
3 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ module MusicBrainz
artists << {
:name => a.first_element_child.text.gsub(/[`]/, "'"),
:sort_name => safe_get_value(a, "sort-name").gsub(/[`]/, "'"),
:weight => 0,
:score => (safe_get_attr(a, nil, "score") .to_i rescue 0),
:desc => safe_get_value(a, "disambiguation"),
:type => safe_get_attr(a, nil, "type"),
:mbid => safe_get_attr(a, nil, "id"),