mirror of
https://github.com/d-fi/d-fi-core.git
synced 2025-07-27 07:34:42 +02:00
use common TRCK format for id3
This commit is contained in:
parent
8fd356fb71
commit
22ed1ec1d0
@ -68,9 +68,17 @@ export const writeMetadataMp3 = (
|
||||
});
|
||||
|
||||
if (track.DISK_NUMBER) {
|
||||
writer
|
||||
.setFrame('TPOS', track.DISK_NUMBER)
|
||||
.setFrame('TRCK', `${track.TRACK_NUMBER}${album ? '/' + album.nb_tracks : ''}`);
|
||||
writer.setFrame('TPOS', track.DISK_NUMBER).setFrame(
|
||||
'TRCK',
|
||||
`${track.TRACK_NUMBER.toLocaleString('en-US', {minimumIntegerDigits: 2})}${
|
||||
album
|
||||
? '/' +
|
||||
album.nb_tracks.toLocaleString('en-US', {
|
||||
minimumIntegerDigits: 2,
|
||||
})
|
||||
: ''
|
||||
}`,
|
||||
);
|
||||
}
|
||||
|
||||
if (track.SNG_CONTRIBUTORS && !Array.isArray(track.SNG_CONTRIBUTORS)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user