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:
parent
e3d15a6a9a
commit
a2470c9f4b
11 changed files with 149 additions and 164 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue