music start

This commit is contained in:
sky
2025-11-04 22:11:04 -05:00
parent 9b66df772a
commit 1f13ba2afb
2 changed files with 30 additions and 3 deletions

View File

@ -9,6 +9,7 @@ async function search(query) {
let data = sc.search(query);
return data;
}
// so um fuck lucida
// based on https://github.com/imputnet/cobalt/blob/58ea4aed01383ead74d5e32e75335eddc2f015be/api/src/processing/services/soundcloud.js
@ -72,7 +73,7 @@ const findBestForPreset = (transcodings, preset) => {
return inferior;
}
async function download(obj) {
const clientId = await findClientID();
const clientId = cachedID.id;
if (!clientId) return { error: "fetch.fail" };
let link = obj;
@ -150,4 +151,4 @@ async function download(obj) {
}
}
export { search, download };
export { search, download, findClientID };