changed tagging param parsing
This commit is contained in:
parent
cedcae8900
commit
e41d3d37a3
File diff suppressed because one or more lines are too long
7
index.js
7
index.js
|
@ -83,8 +83,9 @@ async function handler(type, request) {
|
|||
format = Object.keys(format_string_to_num)[index]
|
||||
}
|
||||
}
|
||||
|
||||
tagging = (url.searchParams.get('t') === 'true') && ((format === '128') || (format === '320') || (format === 'misc'))
|
||||
|
||||
var tagging = url.searchParams.get('t')
|
||||
tagging = (tagging === 'true' || tagging === '1') && format !== 'flac'
|
||||
|
||||
switch (type) {
|
||||
case 'track':
|
||||
|
@ -212,7 +213,7 @@ async function m3u8(type, id, format, access_token, tagging) {
|
|||
return result
|
||||
}
|
||||
} else {
|
||||
result = `https://dz.uhwot.workers.dev/track/${track.id}?f=${format}&t=true`
|
||||
result = `https://dz.uhwot.workers.dev/track/${track.id}?f=${format}&t=1`
|
||||
}
|
||||
list += `#EXTINF:${track.duration},${track.title}\n${result}\n`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue