From 40680506ae74d3b32d32966bec3c042d284f96d8 Mon Sep 17 00:00:00 2001 From: uh_wot Date: Tue, 26 Jan 2021 12:57:00 +0100 Subject: [PATCH] renamed m3u function to m3u8 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {