1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Introduce captions command

This commit is contained in:
Chocobozzz 2021-07-08 11:49:38 +02:00
parent e3d15a6a9a
commit a2470c9f4b
No known key found for this signature in database
GPG key ID: 583A612D890159BE
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'