update bytes

This commit is contained in:
Sayem Chowdhury 2021-08-04 02:11:37 +06:00
parent e2cff09ba1
commit 81f30bb2c9
2 changed files with 3 additions and 3 deletions

View File

@ -157,7 +157,7 @@ if (process.env.CI) {
const trackWithMetadata = await api.addTrackTags(decryptedTrack, track, 500);
t.true(Buffer.isBuffer(trackWithMetadata));
t.is(trackWithMetadata.length, 3629194);
t.is(trackWithMetadata.length, 3629206);
});
test('TRACK128 WITHOUT ALBUM INFO', async (t) => {
@ -195,7 +195,7 @@ if (process.env.CI) {
const trackWithMetadata = await api.addTrackTags(decryptedTrack, track, 500);
t.true(Buffer.isBuffer(trackWithMetadata));
t.is(trackWithMetadata.length, 9023376);
t.is(trackWithMetadata.length, 9023388);
});
test('DOWNLOAD TRACK1411 & ADD METADATA', async (t) => {

View File

@ -54,7 +54,7 @@ const getTrackUrlFromServer = async (track_token: string, format: string): Promi
if (data.data.length > 0) {
if (data.data[0].errors) {
throw new Error(`Deezer error: ${JSON.stringify(data)}`);
throw new Error(Object.entries(data.data[0].errors).join(', '));
}
return data.data[0].media.length > 0 ? data.data[0].media[0].sources[0].url : null;
}