mirror of
https://github.com/d-fi/d-fi-core.git
synced 2025-07-27 07:34:42 +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);
|
||||
t.true(Buffer.isBuffer(trackWithMetadata));
|
||||
t.is(trackWithMetadata.length, 25453375);
|
||||
t.is(trackWithMetadata.length, 25453392);
|
||||
});
|
||||
} else {
|
||||
test('GET MUSIXMATCH LYRICS', async (t) => {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// @ts-ignore
|
||||
import Metaflac from '../lib/metaflac-js';
|
||||
import type {albumTypePublicApi, trackType} from '../types';
|
||||
|
||||
@ -29,7 +28,7 @@ export const writeMetadataFlac = (
|
||||
flac.setTag('LABEL=' + album.label);
|
||||
flac.setTag('DATE=' + album.release_date);
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user