mirror of
https://github.com/d-fi/d-fi-core.git
synced 2025-07-25 22:55:29 +02:00
update bytes
This commit is contained in:
parent
e2cff09ba1
commit
81f30bb2c9
@ -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) => {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user