From 6decb7e8e32498609c2aad8256e6a85bf4edbc64 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Fri, 5 Dec 2014 22:31:49 +0000 Subject: [PATCH] Fix rdio album name matching --- lib/services/rdio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();