Fix privacy argument in upload script

This commit is contained in:
Chocobozzz 2018-04-04 10:47:02 +02:00
parent c49db162ee
commit 72de91cb10
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,7 @@ async function run () {
await processVideo(info, program['language']) await processVideo(info, program['language'])
} }
// https://www.youtube.com/watch?v=2Upx39TBc1s
console.log('I\'m finished!') console.log('I\'m finished!')
process.exit(0) process.exit(0)
}) })

View File

@ -4,6 +4,7 @@ import { isAbsolute } from 'path'
import { promisify } from 'util' import { promisify } from 'util'
import { getClient, login } from '../tests/utils' import { getClient, login } from '../tests/utils'
import { uploadVideo } from '../tests/utils/index' import { uploadVideo } from '../tests/utils/index'
import { VideoPrivacy } from '../../shared/models/videos'
const accessPromise = promisify(access) const accessPromise = promisify(access)
@ -27,6 +28,7 @@ program
if (!program['tags']) program['tags'] = [] if (!program['tags']) program['tags'] = []
if (!program['nsfw']) program['nsfw'] = false if (!program['nsfw']) program['nsfw'] = false
if (!program['privacy']) program['privacy'] = VideoPrivacy.PUBLIC
if (!program['commentsEnabled']) program['commentsEnabled'] = false if (!program['commentsEnabled']) program['commentsEnabled'] = false
if ( if (