Update index.js
Browse files774 unmodified lines775776777778778779780781781782783784774 unmodified lines
let data = await ytAPI(url) ? await ytAPI(url) : {} let dataInfo = await ytdl.getVideoID(url) dataInfo = await yts({videoId: dataInfo}) dataInfo = await yts({videoId: dataInfo}) ? await yts({videoId: dataInfo}) : {}
let response = { info: dataInfo ? dataInfo : {}, ...dataInfo, ...data, };
index.js+2-2