From ee69decc464a782e65c861c09e1c77ab4cbf7816 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Fri, 5 Dec 2014 21:14:03 +0000 Subject: [PATCH] Fix double lookup rdio bug --- 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 c024eb1..4da6503 100644 --- a/lib/services/rdio.js +++ b/lib/services/rdio.js @@ -121,7 +121,7 @@ module.exports.search = function(data) { }).shift(); if (!result) { - var matches = album.match(/^[^\(\[]+/); + var matches = albumClean.match(/^[^\(\[]+/); if (matches[0]) { var cleanedData = JSON.parse(JSON.stringify(data)); if (type == "album") {