ActivityPub-federated video streaming platform using P2P directly in your web browser
Add documentation for upload script
Chocobozzzad34cfc8ac6a
diff --git a/README.md b/README.mdindex 57ea4cbf10..c15f838fc8 100644--- a/README.md+++ b/README.md@@ -166,6 +166,7 @@ For now only on Github:## Tools* [Import videos (YouTube, Dailymotion, Vimeo...)](/support/doc/import-videos.md)+ * [Upload videos from the CLI](/support/doc/upload-cli.md)## Architecturediff --git a/server/tools/upload.ts b/server/tools/upload.tsindex 97e24dc885..ce9e1b62ef 100644--- a/server/tools/upload.ts+++ b/server/tools/upload.ts@@ -76,7 +76,8 @@ async function run () {commentsEnabled: program['commentsEnabled'],fixture: program['file'],thumbnailfile: program['thumbnailPath'],- previewfile: program['previewPath']+ previewfile: program['previewPath'],+ support: undefined}await uploadVideo(program['url'], accessToken, videoAttributes)diff --git a/support/doc/upload-cli.md b/support/doc/upload-cli.mdnew file mode 100644index 0000000000..1eff1f0afe--- /dev/null+++ b/support/doc/upload-cli.md@@ -0,0 +1,16 @@+# Upload videos from CLI++ - [Installation](#installation)+ - [Usage](#usage)++## Installation++### Dependencies++ * [PeerTube dependencies](dependencies.md)++## Usage++```+node dist/server/tools/upload.js --help+```