Don't be so dumb

This commit is contained in:
Jonathan Cremin 2014-12-05 22:20:17 +00:00
parent 49cf87d5c9
commit e9a5f6713d
6 changed files with 6 additions and 6 deletions

View file

@ -72,7 +72,7 @@ module.exports.search = function(data) {
if (!result.results[0]) {
var matches = album.match(/^[^\(\[]+/);
if (matches[0]) {
if (matches[0] && matches[0] != album) {
var cleanedData = JSON.parse(JSON.stringify(data));
if (type == "album") {
cleanedData.name = matches[0].trim();