const options = [ '-j', '--flat-playlist', '--playlist-reverse' ]
youtubeDL.getInfo(program['targetUrl'], options, processOptions, async (err, info) => {
if (err) {
- console.log(err.message);
- process.exit(1);
+ console.log(err.message)
+ process.exit(1)
}
let infoArray: any[]
await uploadVideo(program['url'], accessToken, videoAttributes)
} else {
- console.log(err.message);
- process.exit(1);
+ console.log(err.message)
+ process.exit(1)
}
}