Introduce captions command

This commit is contained in:
Chocobozzz
2021-07-08 11:49:38 +02:00
parent e3d15a6a9a
commit a2470c9f4b
11 changed files with 149 additions and 164 deletions

View File

@@ -5,7 +5,6 @@ import * as autocannon from 'autocannon'
import {
addVideoCommentReply,
addVideoCommentThread,
createVideoCaption,
flushAndRunServer,
getVideosList,
killallServers,
@@ -244,9 +243,7 @@ async function prepare () {
}
for (const caption of [ 'ar', 'fr', 'en', 'zh' ]) {
await createVideoCaption({
url: server.url,
accessToken: server.accessToken,
await server.captionsCommand.createVideoCaption({
language: caption,
videoId: video.id,
fixture: 'subtitle-good2.vtt'