skip user uploaded tracks in playlists
This commit is contained in:
parent
88e5dcfa8a
commit
f7574fc948
1 changed files with 2 additions and 3 deletions
|
@ -439,11 +439,10 @@ async function m3u8(type, id, format, tagging, host) {
|
||||||
let list = '#EXTM3U\n'
|
let list = '#EXTM3U\n'
|
||||||
|
|
||||||
for (const track of json.tracks.data) {
|
for (const track of json.tracks.data) {
|
||||||
let format_tmp = format
|
|
||||||
if (track.id < 0) { // user-uploaded track
|
if (track.id < 0) { // user-uploaded track
|
||||||
format_tmp = 'misc'
|
continue
|
||||||
}
|
}
|
||||||
const result = `https://${host}/track/${track.id}?f=${format_tmp}&t=${+ tagging}`
|
const result = `https://${host}/track/${track.id}?f=${format}&t=${+ tagging}`
|
||||||
list += `#EXTINF:${track.duration},${track.title}\n${result}\n`
|
list += `#EXTINF:${track.duration},${track.title}\n${result}\n`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue