fix flac tag

This commit is contained in:
Sayem Chowdhury 2021-04-13 14:47:37 +06:00
parent 84c6a04c0f
commit e5e28a8209
2 changed files with 2 additions and 3 deletions

View File

@ -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) => {

View File

@ -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) {