function getYoutubeDLInfo (url: string, opts?: string[]): Promise<YoutubeDLInfo> {
return new Promise<YoutubeDLInfo>(async (res, rej) => {
const options = opts || [ '-j', '--flat-playlist' ]
function getYoutubeDLInfo (url: string, opts?: string[]): Promise<YoutubeDLInfo> {
return new Promise<YoutubeDLInfo>(async (res, rej) => {
const options = opts || [ '-j', '--flat-playlist' ]
return new Promise<string>(async (res, rej) => {
const youtubeDL = await safeGetYoutubeDL()
return new Promise<string>(async (res, rej) => {
const youtubeDL = await safeGetYoutubeDL()