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"]))) {
|
if ((audioFormat === "best" && services[host]["bestAudio"]) || (services[host]["bestAudio"] && (audioFormat === 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") {
|
} else if (audioFormat === "best") {
|
||||||
audioFormat = "m4a";
|
audioFormat = "m4a";
|
||||||
copy = true;
|
copy = true;
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
},
|
},
|
||||||
"soundcloud": {
|
"soundcloud": {
|
||||||
"patterns": [":author/:song/s-:accessKey", ":author/:song", ":shortLink"],
|
"patterns": [":author/:song/s-:accessKey", ":author/:song", ":shortLink"],
|
||||||
"bestAudio": "none",
|
"bestAudio": "opus",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
"instagram": {
|
"instagram": {
|
||||||
|
|
Loading…
Reference in a new issue