1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Allow to specify transcoding and import jobs concurrency

This commit is contained in:
Chocobozzz 2021-02-08 10:51:10 +01:00 committed by Chocobozzz
parent 81b46cbc34
commit 9129b7694d
22 changed files with 133 additions and 33 deletions

View file

@ -65,6 +65,14 @@ export const TRANSCODING_THREADS_VALIDATOR: BuildFormValidator = {
}
}
export const CONCURRENCY_VALIDATOR: BuildFormValidator = {
VALIDATORS: [Validators.required, Validators.min(1)],
MESSAGES: {
'required': $localize`Concurrency is required.`,
'min': $localize`Concurrency should be greater or equal to 1.`
}
}
export const INDEX_URL_VALIDATOR: BuildFormValidator = {
VALIDATORS: [Validators.pattern(/^https:\/\//)],
MESSAGES: {