diff --git a/lib/services/rdio.js b/lib/services/rdio.js index 693dc98..c2d38a5 100644 --- a/lib/services/rdio.js +++ b/lib/services/rdio.js @@ -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();