Fix privacy argument in upload script
This commit is contained in:
parent
c49db162ee
commit
72de91cb10
|
@ -76,6 +76,7 @@ async function run () {
|
|||
await processVideo(info, program['language'])
|
||||
}
|
||||
|
||||
// https://www.youtube.com/watch?v=2Upx39TBc1s
|
||||
console.log('I\'m finished!')
|
||||
process.exit(0)
|
||||
})
|
||||
|
|
|
@ -4,6 +4,7 @@ import { isAbsolute } from 'path'
|
|||
import { promisify } from 'util'
|
||||
import { getClient, login } from '../tests/utils'
|
||||
import { uploadVideo } from '../tests/utils/index'
|
||||
import { VideoPrivacy } from '../../shared/models/videos'
|
||||
|
||||
const accessPromise = promisify(access)
|
||||
|
||||
|
@ -27,6 +28,7 @@ program
|
|||
|
||||
if (!program['tags']) program['tags'] = []
|
||||
if (!program['nsfw']) program['nsfw'] = false
|
||||
if (!program['privacy']) program['privacy'] = VideoPrivacy.PUBLIC
|
||||
if (!program['commentsEnabled']) program['commentsEnabled'] = false
|
||||
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue