removed m3u8Resp variable

This commit is contained in:
uh wot 2023-07-02 02:44:47 +02:00
parent 975a8c65bf
commit 9952b33e08
Signed by: uhwot
GPG Key ID: CB2454984587B781
1 changed files with 1 additions and 3 deletions

View File

@ -502,8 +502,6 @@ function legacy_track_url(json, format) {
return legacy_stream_url(md5_origin, format, id, media_version)
}
const m3u8Resp = createResponse('audio/mpegurl')
async function m3u8(type, id, format, tagging, host) {
const response = await fetch(`https://api.deezer.com/${type}/${id}?limit=-1`)
const json = await response.json()
@ -522,7 +520,7 @@ async function m3u8(type, id, format, tagging, host) {
list += `#EXTINF:${track.duration},${track.title}\n${result}\n`
}
return m3u8Resp(list)
return createResponse('audio/mpegurl')(list)
}
const router = Router()