fix getting tracks with fallbacks

This commit is contained in:
uh wot 2021-07-19 15:43:07 +02:00
parent 2a3cec050b
commit 705da64066
Signed by: uhwot
GPG Key ID: CB2454984587B781
2 changed files with 6 additions and 1 deletions

2
dist/worker.js vendored

File diff suppressed because one or more lines are too long

View File

@ -173,6 +173,11 @@ async function track(id, format, access_token, tagging) {
} }
async function track_url(json, format) { async function track_url(json, format) {
// needed if track has fallback, like https://www.deezer.com/track/1398759152
if (json.alternative) {
json = json.alternative
}
const id = json.id const id = json.id
const md5_origin = json.md5_origin const md5_origin = json.md5_origin
const media_version = json.media_version const media_version = json.media_version