const PLACEHOLDER_IMAGE = "https://media.istockphoto.com/id/1147544807/vector/thumbnail-image-vector-graphic.jpg?s=612x612&w=0&k=20&c=rnCKVbdxqkjlcs3xH87-9gocETqpspHFXu5dIGB4wuM="; async function searchResults(keyword) { const searchUrl = `https://api-v2.soundcloud.com/search?q=${encodeURIComponent(keyword)}&facet=model&user_id=200971-112325-516393-99787&client_id=UjhhbCuNo1OQfTwkzajxQNLlJcSlUlVz&limit=30`; try { const response = await fetch(searchUrl); const json = await JSON.parse(response); const results = json.collection.map(item => ({ title: item.title, image: item.artwork_url || PLACEHOLDER_IMAGE, href: item.permalink_url })); //console.log(results); console.log(JSON.stringify(results)); return JSON.stringify(results); } catch (error) { console.error("Error fetching search results:", error); return JSON.stringify([]); } } async function extractDetails(url) { const details = []; details.push({ description: 'N/A', alias: 'N/A', airdate: 'N/A' }); //#IAMLAZY console.log(JSON.stringify(details)); return JSON.stringify(details); } async function extractEpisodes(url) { const response = await fetch(url); const html = await response; const tracks = []; const trackRegex = /
]*>[\s\S]*?