]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/extra-utils/videos/videos.ts
Use veryfast preset for default transcoding profile
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / videos / videos.ts
index 392eddcc5a97cdc6d0369293bee214ff6ba5e0c9..110552c77ac1479c00fc5c7f6aa2da4ca05a6421 100644 (file)
@@ -641,10 +641,12 @@ async function uploadVideoAndGetId (options: {
   nsfw?: boolean
   privacy?: VideoPrivacy
   token?: string
+  fixture?: string
 }) {
   const videoAttrs: any = { name: options.videoName }
   if (options.nsfw) videoAttrs.nsfw = options.nsfw
   if (options.privacy) videoAttrs.privacy = options.privacy
+  if (options.fixture) videoAttrs.fixture = options.fixture
 
   const res = await uploadVideo(options.server.url, options.token || options.server.accessToken, videoAttrs)