Made ARTISTS tag optional

This commit is contained in:
RemixDev 2021-12-19 17:27:48 +01:00
parent 3309a04bc9
commit 5e95d245cf
No known key found for this signature in database
GPG key ID: B33962B465BDB51C
2 changed files with 12 additions and 7 deletions

View file

@ -66,6 +66,7 @@ const DEFAULTS = {
tags: {
title: true,
artist: true,
artists: true,
album: true,
cover: true,
trackNumber: true,

View file

@ -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}`)
})
}
}
}