mirror of
https://github.com/d-fi/d-fi-core.git
synced 2025-07-27 15:44:26 +02:00
fix flac tag
This commit is contained in:
parent
84c6a04c0f
commit
e5e28a8209
@ -208,7 +208,7 @@ if (process.env.CI) {
|
|||||||
|
|
||||||
const trackWithMetadata = await api.addTrackTags(decryptedTrack, track, 500);
|
const trackWithMetadata = await api.addTrackTags(decryptedTrack, track, 500);
|
||||||
t.true(Buffer.isBuffer(trackWithMetadata));
|
t.true(Buffer.isBuffer(trackWithMetadata));
|
||||||
t.is(trackWithMetadata.length, 25453375);
|
t.is(trackWithMetadata.length, 25453392);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
test('GET MUSIXMATCH LYRICS', async (t) => {
|
test('GET MUSIXMATCH LYRICS', async (t) => {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// @ts-ignore
|
|
||||||
import Metaflac from '../lib/metaflac-js';
|
import Metaflac from '../lib/metaflac-js';
|
||||||
import type {albumTypePublicApi, trackType} from '../types';
|
import type {albumTypePublicApi, trackType} from '../types';
|
||||||
|
|
||||||
@ -29,7 +28,7 @@ export const writeMetadataFlac = (
|
|||||||
flac.setTag('LABEL=' + album.label);
|
flac.setTag('LABEL=' + album.label);
|
||||||
flac.setTag('DATE=' + album.release_date);
|
flac.setTag('DATE=' + album.release_date);
|
||||||
flac.setTag('YEAR=' + RELEASE_YEAR);
|
flac.setTag('YEAR=' + RELEASE_YEAR);
|
||||||
flac.setTag('COMPILATION=' + album.artist.name.match(/various/i) ? '1' : '0');
|
flac.setTag(`COMPILATION=${album.artist.name.match(/various/i) ? '1' : '0'}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (track.DISK_NUMBER) {
|
if (track.DISK_NUMBER) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user