Don't be so dumb
This commit is contained in:
parent
49cf87d5c9
commit
e9a5f6713d
6 changed files with 6 additions and 6 deletions
|
@ -77,7 +77,7 @@ module.exports.search = function(data) {
|
|||
|
||||
if (!data[type + "s"].items[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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue