diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-08 11:49:38 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | a2470c9f4bfc7f49f4b94de935bacdd53fd54f29 (patch) | |
tree | cb6b6b33d1a404fe31547c004241a7eb9743b64e /scripts | |
parent | e3d15a6a9aed97a004d9dac1b7a6499d794e080a (diff) | |
download | PeerTube-a2470c9f4bfc7f49f4b94de935bacdd53fd54f29.tar.gz PeerTube-a2470c9f4bfc7f49f4b94de935bacdd53fd54f29.tar.zst PeerTube-a2470c9f4bfc7f49f4b94de935bacdd53fd54f29.zip |
Introduce captions command
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/benchmark.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts index 0cadb36d9..fcfc67bf7 100644 --- a/scripts/benchmark.ts +++ b/scripts/benchmark.ts | |||
@@ -5,7 +5,6 @@ import * as autocannon from 'autocannon' | |||
5 | import { | 5 | import { |
6 | addVideoCommentReply, | 6 | addVideoCommentReply, |
7 | addVideoCommentThread, | 7 | addVideoCommentThread, |
8 | createVideoCaption, | ||
9 | flushAndRunServer, | 8 | flushAndRunServer, |
10 | getVideosList, | 9 | getVideosList, |
11 | killallServers, | 10 | killallServers, |
@@ -244,9 +243,7 @@ async function prepare () { | |||
244 | } | 243 | } |
245 | 244 | ||
246 | for (const caption of [ 'ar', 'fr', 'en', 'zh' ]) { | 245 | for (const caption of [ 'ar', 'fr', 'en', 'zh' ]) { |
247 | await createVideoCaption({ | 246 | await server.captionsCommand.createVideoCaption({ |
248 | url: server.url, | ||
249 | accessToken: server.accessToken, | ||
250 | language: caption, | 247 | language: caption, |
251 | videoId: video.id, | 248 | videoId: video.id, |
252 | fixture: 'subtitle-good2.vtt' | 249 | fixture: 'subtitle-good2.vtt' |