This commit is contained in:
Sayem Chowdhury 2021-08-04 02:04:20 +06:00
parent 53789ac725
commit e2cff09ba1
2 changed files with 4 additions and 2 deletions

View File

@ -213,7 +213,7 @@ if (process.env.CI) {
const trackWithMetadata = await api.addTrackTags(decryptedTrack, track, 500);
t.true(Buffer.isBuffer(trackWithMetadata));
t.is(trackWithMetadata.length, 25453410);
t.is(trackWithMetadata.length, 25453416);
});
} else {
test('GET MUSIXMATCH LYRICS', async (t) => {

View File

@ -73,10 +73,12 @@ export const getTrackDownloadUrl = async (track: trackType, quality: number): Pr
break;
case 3:
formatName = 'MP3_320';
break;
case 1:
formatName = 'MP3_128';
break;
default:
throw new Error(`Unknow quality ${quality}`);
throw new Error(`Unknown quality ${quality}`);
}
// Get URL with the official API