api/soundcloud: fix short link url & refactor

This commit is contained in:
wukko
2025-04-29 22:29:57 +06:00
parent de6b611c41
commit 00b217796f
3 changed files with 48 additions and 43 deletions

View File

@@ -157,12 +157,8 @@ export default async function({ host, patternMatch, params }) {
isAudioOnly = true;
isAudioMuted = false;
r = await soundcloud({
url,
author: patternMatch.author,
song: patternMatch.song,
...patternMatch,
format: params.audioFormat,
shortLink: patternMatch.shortLink || false,
accessKey: patternMatch.accessKey || false
});
break;