mirror of
https://gitlab.com/RemixDev/deemix-js.git
synced 2025-01-29 01:08:24 +00:00
Made ARTISTS tag optional
This commit is contained in:
parent
3309a04bc9
commit
5e95d245cf
|
@ -66,6 +66,7 @@ const DEFAULTS = {
|
||||||
tags: {
|
tags: {
|
||||||
title: true,
|
title: true,
|
||||||
artist: true,
|
artist: true,
|
||||||
|
artists: true,
|
||||||
album: true,
|
album: true,
|
||||||
cover: true,
|
cover: true,
|
||||||
trackNumber: true,
|
trackNumber: true,
|
||||||
|
|
|
@ -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
|
// 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
|
// https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#artists
|
||||||
tag.setFrame('TXXX', {
|
if (save.artists){
|
||||||
description: 'ARTISTS',
|
tag.setFrame('TXXX', {
|
||||||
value: track.artists
|
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
|
// 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
|
// https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#artists
|
||||||
track.artists.forEach(artist => {
|
if (save.artists){
|
||||||
flac.setTag(`ARTISTS=${artist}`)
|
track.artists.forEach(artist => {
|
||||||
})
|
flac.setTag(`ARTISTS=${artist}`)
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue