music start
This commit is contained in:
@ -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 };
|
||||
Reference in New Issue
Block a user