Fix second lookups

This commit is contained in:
Jonathan Cremin 2014-12-05 22:26:12 +00:00
parent e9a5f6713d
commit 88ae9b401c
6 changed files with 8 additions and 8 deletions

View file

@ -77,7 +77,7 @@ module.exports.search = function(data) {
if (type == "album") {
cleanedData.name = matches[0].trim();
} else if (type == "track") {
cleanedData.album = matches[0].trim();
cleanedData.album.name = matches[0].trim();
}
module.exports.search(cleanedData).then(deferred.resolve);
} else {