mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-04 06:06:07 +00:00
fix soundcloud downloads when requested format is best
This commit is contained in:
parent
eee0f43ee1
commit
0bb84f0e98
|
@ -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