diff --git a/index.js b/index.js index 428dc5d..0136a31 100644 --- a/index.js +++ b/index.js @@ -92,7 +92,7 @@ async function handler(type, request) { return await track(id, format, access_token) case 'album': case 'playlist': - return await m3u(type, id, format, access_token) + return await m3u8(type, id, format, access_token) } } @@ -125,7 +125,7 @@ async function track_url(json, format) { return await url_gen(md5_origin, format, id, media_version) } -async function m3u(type, id, format, access_token) { +async function m3u8(type, id, format, access_token) { const response = await fetch(`https://api.deezer.com/${type}/${id}?access_token=${access_token}&limit=-1`) const json = await response.json() if (json.error !== undefined) {