]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/benchmark.ts
Introduce captions command
[github/Chocobozzz/PeerTube.git] / scripts / benchmark.ts
index 0cadb36d94a5897630783ac8b71bd68905491bdf..fcfc67bf735c2e40d1294e9dfd7e1cc6a4aa41c4 100644 (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'