soundcloud: fall back to mp3 when no opus found

also made match action decider readable
This commit is contained in:
wukko
2023-12-25 22:21:06 +06:00
parent 4b9d61b13f
commit 197198ad79
5 changed files with 104 additions and 67 deletions

View File

@@ -108,8 +108,7 @@ export default async function(host, patternMatch, url, lang, obj) {
author: patternMatch["author"],
song: patternMatch["song"],
shortLink: patternMatch["shortLink"] || false,
accessKey: patternMatch["accessKey"] || false,
format: obj.aFormat
accessKey: patternMatch["accessKey"] || false
});
break;
case "instagram":