X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftools%2Fpeertube-upload.ts;h=f604c9bee8fb96eecb3b6f7428c6b02435bc12c5;hb=837666fe48f9ed786db75c96e2025cbcf20a1e3b;hp=d9f9a8eada3b14f4e757caafe24346eec08631dd;hpb=8d2be0ed7bb87283a1ec98609df6b82d83db706a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tools/peertube-upload.ts b/server/tools/peertube-upload.ts index d9f9a8ead..f604c9bee 100644 --- a/server/tools/peertube-upload.ts +++ b/server/tools/peertube-upload.ts @@ -1,3 +1,6 @@ +import { registerTSPaths } from '../helpers/register-ts-paths' +registerTSPaths() + import * as program from 'commander' import { access, constants } from 'fs-extra' import { isAbsolute } from 'path' @@ -46,11 +49,7 @@ async function run (url: string, username: string, password: string) { console.log('Uploading %s video...', program[ 'videoName' ]) - const defaultAttributes = { - tags: command[ 'tags' ], - description: command[ 'videoDescription' ] - } - const videoAttributes = await buildVideoAttributesFromCommander(url, program, defaultAttributes) + const videoAttributes = await buildVideoAttributesFromCommander(url, program) Object.assign(videoAttributes, { fixture: program[ 'file' ],