import Soundcloud from 'lucida/streamers/soundcloud/main.js' let clientId = process.env.SOUNDCLOUD_CLIENT_ID; let sc = new Soundcloud({ // oauthToken: clientId }) 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 const cachedID = { version: '', id: '' } async function findClientID() { try { const sc = await fetch('https://soundcloud.com/').then(r => r.text()).catch(() => {}); const scVersion = String(sc.match(/