Skip to content

best way to save what you love

fix soundcloud downloads when requested format is `best`

dumbmoron0bb84f0e98d9
diff --git a/src/modules/processing/matchActionDecider.js b/src/modules/processing/matchActionDecider.js
index 82eb3415..32ce4a52 100644
--- a/src/modules/processing/matchActionDecider.js
+++ b/src/modules/processing/matchActionDecider.js
@@ -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;
diff --git a/src/modules/processing/servicesConfig.json b/src/modules/processing/servicesConfig.json
index c7e62a1e..95ec5509 100644
--- a/src/modules/processing/servicesConfig.json
+++ b/src/modules/processing/servicesConfig.json
@@ -49,7 +49,7 @@
},
"soundcloud": {
"patterns": [":author/:song/s-:accessKey", ":author/:song", ":shortLink"],
- "bestAudio": "none",
+ "bestAudio": "opus",
"enabled": true
},
"instagram": {