From 5e95d245cfdf5cd3c9421fa130220b09dd67e25c Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sun, 19 Dec 2021 17:27:48 +0100 Subject: [PATCH] Made ARTISTS tag optional --- deemix/settings.js | 1 + deemix/tagger.js | 18 +++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/deemix/settings.js b/deemix/settings.js index 188d3ad..ba92850 100644 --- a/deemix/settings.js +++ b/deemix/settings.js @@ -66,6 +66,7 @@ const DEFAULTS = { tags: { title: true, artist: true, + artists: true, album: true, cover: true, trackNumber: true, diff --git a/deemix/tagger.js b/deemix/tagger.js index 60021d9..500ffe2 100644 --- a/deemix/tagger.js +++ b/deemix/tagger.js @@ -20,10 +20,12 @@ function tagID3(path, track, save){ } // Tag ARTISTS is added to keep the multiartist support when using a non standard tagging method // https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#artists - tag.setFrame('TXXX', { - description: 'ARTISTS', - value: track.artists - }) + if (save.artists){ + tag.setFrame('TXXX', { + description: 'ARTISTS', + value: track.artists + }) + } } } @@ -161,9 +163,11 @@ function tagFLAC(path, track, save){ } // Tag ARTISTS is added to keep the multiartist support when using a non standard tagging method // https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#artists - track.artists.forEach(artist => { - flac.setTag(`ARTISTS=${artist}`) - }) + if (save.artists){ + track.artists.forEach(artist => { + flac.setTag(`ARTISTS=${artist}`) + }) + } } }