]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/benchmark.ts
Rename captions commands
[github/Chocobozzz/PeerTube.git] / scripts / benchmark.ts
index 071c4dea7c639042fac715e83c085123f1efa2ec..83b9329090cd0adf9a167903168cc13ec523703f 100644 (file)
@@ -232,7 +232,7 @@ async function prepare () {
   }
 
   for (const caption of [ 'ar', 'fr', 'en', 'zh' ]) {
-    await server.captions.createVideoCaption({
+    await server.captions.add({
       language: caption,
       videoId: video.id,
       fixture: 'subtitle-good2.vtt'