update endpoint

This commit is contained in:
Sayem Chowdhury 2021-07-17 19:58:53 +06:00
parent 40e88ac1e9
commit 1b87805d82

View File

@ -75,5 +75,5 @@ export const decryptDownload = (source: Buffer, trackId: string) => {
export const getTrackDownloadUrl = (track: trackType, quality: number) => { export const getTrackDownloadUrl = (track: trackType, quality: number) => {
const cdn = track.MD5_ORIGIN[0]; // cdn destination const cdn = track.MD5_ORIGIN[0]; // cdn destination
const filename = getSongFileName(track, quality); // encrypted file name const filename = getSongFileName(track, quality); // encrypted file name
return `http://e-cdn-proxy-${cdn}.deezer.com/mobile/1/${filename}`; return `http://e-cdn-proxy-${cdn}.deezer.com/api/1/${filename}`;
}; };