From b8ce81ebd53b261658b51ed8ff89bd54ef97ff6b Mon Sep 17 00:00:00 2001 From: Florrie Date: Tue, 15 Oct 2019 22:36:25 -0300 Subject: Don't process metadata of non-tracks This fixes mtui crashing whenever you process the metadata of any group including a non-track too. --- backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend.js b/backend.js index f2a9d99..b3e6564 100644 --- a/backend.js +++ b/backend.js @@ -629,7 +629,7 @@ class Backend extends EventEmitter { if (isGroup(item)) { const results = await Promise.all(item.items.map(x => this.processMetadata(x, reprocess, false))) counter += results.reduce((acc, n) => acc + n, 0) - } else process: { + } else if (isTrack(item)) process: { if (!reprocess && this.getMetadataFor(item)) { break process } -- cgit 1.3.0-6-gf8a5