const options = [ '-j', '--flat-playlist', '--playlist-reverse' ]
youtubeDL.getInfo(program['targetUrl'], options, processOptions, async (err, info) => {
- if (err) throw err
+ if (err) {
+ console.log(err.message)
+ process.exit(1)
+ }
let infoArray: any[]
nsfw: isNSFW(videoInfo),
commentsEnabled: true,
description: videoInfo.description,
+ support: undefined,
tags,
privacy: VideoPrivacy.PUBLIC,
fixture: videoPath,
await uploadVideo(program['url'], accessToken, videoAttributes)
} else {
- throw err
+ console.log(err.message)
+ process.exit(1)
}
}