fix soundcloud downloads when audio format is set to best
This commit is contained in:
commit
4448ebe1e3
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
},
|
||||
"soundcloud": {
|
||||
"patterns": [":author/:song/s-:accessKey", ":author/:song", ":shortLink"],
|
||||
"bestAudio": "none",
|
||||
"bestAudio": "opus",
|
||||
"enabled": true
|
||||
},
|
||||
"instagram": {
|
||||
|
|
Loading…
Reference in a new issue