Update index.js
Browse files721 unmodified lines722723724725726727728729730731732721 unmodified lineslet data = await ytAPI(url) || {};let videoID = ytdl.getVideoID(url);let dataInfo = await yts({ videoId: videoID }) || {};let response = {...dataInfo,mp4: data.mp4_url,mp3: data.mp3_url};return res.json(response);721 unmodified lines722723724725726727728729730731732733734721 unmodified lineslet 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 : nulllet response = {...dataInfo,mp4: data.mp4_url,mp3: data.mp3_url,other: otherAPI || null};return res.json(response);
index.js+3-1