fix soundcloud downloads when audio format is set to best

This commit is contained in:
wukko 2023-09-17 09:44:35 +06:00 committed by GitHub
commit 4448ebe1e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -126,7 +126,12 @@ export default function(r, host, audioFormat, isAudioOnly, lang, isAudioMuted, d
}
if ((audioFormat === "best" && services[host]["bestAudio"]) || (services[host]["bestAudio"] && (audioFormat === services[host]["bestAudio"]))) {
audioFormat = services[host]["bestAudio"];
processType = "bridge"
if (host === "soundcloud") {
processType = "render"
copy = true
} else {
processType = "bridge"
}
} else if (audioFormat === "best") {
audioFormat = "m4a";
copy = true;

View file

@ -49,7 +49,7 @@
},
"soundcloud": {
"patterns": [":author/:song/s-:accessKey", ":author/:song", ":shortLink"],
"bestAudio": "none",
"bestAudio": "opus",
"enabled": true
},
"instagram": {