Update index.js
Browse files721 unmodified lines722723724725725726727728729730731731732733734721 unmodified lines let data = await ytAPI(url) || {}; let videoID = ytdl.getVideoID(url); let dataInfo = await yts({ videoId: videoID }) || {}; let otherAPI = await (await axios.get("https://line.1010diy.com/web/free-mp3-finder/detail?url="+url))?.data?.data ? await (await axios.get("https://line.1010diy.com/web/free-mp3-finder/detail?url="+url))?.data?.data : null //let otherAPI = await (await axios.get("https://line.1010diy.com/web/free-mp3-finder/detail?url="+url))?.data?.data ? await (await axios.get("https://line.1010diy.com/web/free-mp3-finder/detail?url="+url))?.data?.data : null
let response = { ...dataInfo, mp4: data.mp4_url, mp3: data.mp3_url, other: otherAPI || null //other: otherAPI || null };
return res.json(response);index.js+2-2