removed m3u8Resp variable
This commit is contained in:
parent
975a8c65bf
commit
9952b33e08
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue