mirror of
https://github.com/d-fi/d-fi-core.git
synced 2025-07-23 21:55:27 +02:00
update readme
This commit is contained in:
parent
5dc58f8a61
commit
0aa296d21f
@ -40,10 +40,7 @@ const url = await api.getTrackDownloadUrl(track, 1);
|
||||
const {data} = await axios.get(url, {responseType: 'arraybuffer'});
|
||||
|
||||
// Decrypt track if needed
|
||||
let decryptedTrack = data;
|
||||
if (api.isTrackEncrypted(url)) {
|
||||
decryptedTrack = api.decryptDownload(data, track.SNG_ID);
|
||||
}
|
||||
const decryptedTrack = api.trackIsEncrypted(url) ? api.decryptDownload(data, track.SNG_ID) : data;
|
||||
|
||||
// Add id3 metadata
|
||||
const trackWithMetadata = await api.addTrackTags(decryptedTrack, track, 500);
|
||||
|
Loading…
x
Reference in New Issue
Block a user