Fix rdio album name matching

This commit is contained in:
Jonathan Cremin 2014-12-05 22:31:49 +00:00
parent 88ae9b401c
commit 6decb7e8e3

View file

@ -115,7 +115,7 @@ module.exports.search = function(data) {
var result = results.filter(function(result) {
if (type == "album" && result.name.match(/([^\(\[]+)/)[0] == albumClean) {
return result;
} else if (type == "track" && result.album.name.match(/([^\(\[]+)/)[0] == albumClean) {
} else if (type == "track" && result.album.match(/([^\(\[]+)/)[0] == albumClean) {
return result;
}
}).shift();