From 876badbeea4a84234005842cc13059ad7004f35a Mon Sep 17 00:00:00 2001 From: Nick Thomson Date: Mon, 3 Oct 2022 01:38:52 +0100 Subject: [PATCH] Fix a crash under certain circumstances when updating tags when quick matching. --- server/scanner/Scanner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scanner/Scanner.js b/server/scanner/Scanner.js index 2caf9e0e..f9d6273c 100644 --- a/server/scanner/Scanner.js +++ b/server/scanner/Scanner.js @@ -819,7 +819,7 @@ class Scanner { if ((!libraryItem.media.tags.length || options.overrideDetails)) { var tagsArray = [] if (Array.isArray(matchData[key])) tagsArray = [...matchData[key]] - else tagsArray = tagsArray[key].split(',').map(v => v.trim()).filter(v => !!v) + else tagsArray = matchData[key].split(',').map(v => v.trim()).filter(v => !!v) updatePayload[key] = tagsArray } } else if ((!libraryItem.media.metadata[key] || options.overrideDetails)) {