diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-29 15:31:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-29 15:31:31 +0100 |
commit | a8537c622ed8ff58b26a74a8d86e7c5b890f8af2 (patch) | |
tree | 6681cdbba4975135377f93932671e8a96c2055de /shared | |
parent | b87b606a65c9baa30742d74dd470945b08e17601 (diff) | |
download | PeerTube-a8537c622ed8ff58b26a74a8d86e7c5b890f8af2.tar.gz PeerTube-a8537c622ed8ff58b26a74a8d86e7c5b890f8af2.tar.zst PeerTube-a8537c622ed8ff58b26a74a8d86e7c5b890f8af2.zip |
Use veryfast preset for default transcoding profile
Diffstat (limited to 'shared')
-rw-r--r-- | shared/extra-utils/videos/videos.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts index 392eddcc5..110552c77 100644 --- a/shared/extra-utils/videos/videos.ts +++ b/shared/extra-utils/videos/videos.ts | |||
@@ -641,10 +641,12 @@ async function uploadVideoAndGetId (options: { | |||
641 | nsfw?: boolean | 641 | nsfw?: boolean |
642 | privacy?: VideoPrivacy | 642 | privacy?: VideoPrivacy |
643 | token?: string | 643 | token?: string |
644 | fixture?: string | ||
644 | }) { | 645 | }) { |
645 | const videoAttrs: any = { name: options.videoName } | 646 | const videoAttrs: any = { name: options.videoName } |
646 | if (options.nsfw) videoAttrs.nsfw = options.nsfw | 647 | if (options.nsfw) videoAttrs.nsfw = options.nsfw |
647 | if (options.privacy) videoAttrs.privacy = options.privacy | 648 | if (options.privacy) videoAttrs.privacy = options.privacy |
649 | if (options.fixture) videoAttrs.fixture = options.fixture | ||
648 | 650 | ||
649 | const res = await uploadVideo(options.server.url, options.token || options.server.accessToken, videoAttrs) | 651 | const res = await uploadVideo(options.server.url, options.token || options.server.accessToken, videoAttrs) |
650 | 652 | ||