diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/tools/import-videos.ts | 1 | ||||
-rw-r--r-- | server/tools/upload.ts | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/server/tools/import-videos.ts b/server/tools/import-videos.ts index 2f38ea7c7..e6272a433 100644 --- a/server/tools/import-videos.ts +++ b/server/tools/import-videos.ts | |||
@@ -76,6 +76,7 @@ async function run () { | |||
76 | await processVideo(info, program['language']) | 76 | await processVideo(info, program['language']) |
77 | } | 77 | } |
78 | 78 | ||
79 | // https://www.youtube.com/watch?v=2Upx39TBc1s | ||
79 | console.log('I\'m finished!') | 80 | console.log('I\'m finished!') |
80 | process.exit(0) | 81 | process.exit(0) |
81 | }) | 82 | }) |
diff --git a/server/tools/upload.ts b/server/tools/upload.ts index e835e61f6..765e9618a 100644 --- a/server/tools/upload.ts +++ b/server/tools/upload.ts | |||
@@ -4,6 +4,7 @@ import { isAbsolute } from 'path' | |||
4 | import { promisify } from 'util' | 4 | import { promisify } from 'util' |
5 | import { getClient, login } from '../tests/utils' | 5 | import { getClient, login } from '../tests/utils' |
6 | import { uploadVideo } from '../tests/utils/index' | 6 | import { uploadVideo } from '../tests/utils/index' |
7 | import { VideoPrivacy } from '../../shared/models/videos' | ||
7 | 8 | ||
8 | const accessPromise = promisify(access) | 9 | const accessPromise = promisify(access) |
9 | 10 | ||
@@ -27,6 +28,7 @@ program | |||
27 | 28 | ||
28 | if (!program['tags']) program['tags'] = [] | 29 | if (!program['tags']) program['tags'] = [] |
29 | if (!program['nsfw']) program['nsfw'] = false | 30 | if (!program['nsfw']) program['nsfw'] = false |
31 | if (!program['privacy']) program['privacy'] = VideoPrivacy.PUBLIC | ||
30 | if (!program['commentsEnabled']) program['commentsEnabled'] = false | 32 | if (!program['commentsEnabled']) program['commentsEnabled'] = false |
31 | 33 | ||
32 | if ( | 34 | if ( |