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); const trackWithMetadata = await api.addTrackTags(decryptedTrack, track, 500);
t.true(Buffer.isBuffer(trackWithMetadata)); t.true(Buffer.isBuffer(trackWithMetadata));
t.is(trackWithMetadata.length, 25453410); t.is(trackWithMetadata.length, 25453416);
}); });
} else { } else {
test('GET MUSIXMATCH LYRICS', async (t) => { test('GET MUSIXMATCH LYRICS', async (t) => {

View File

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