mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Add hls support on server
This commit is contained in:
parent
4348a27d25
commit
0920929696
81 changed files with 2000 additions and 407 deletions
|
@ -13,6 +13,10 @@ function isNotEmptyIntArray (value: any) {
|
|||
return Array.isArray(value) && value.every(v => validator.isInt('' + v)) && value.length !== 0
|
||||
}
|
||||
|
||||
function isArrayOf (value: any, validator: (value: any) => boolean) {
|
||||
return isArray(value) && value.every(v => validator(v))
|
||||
}
|
||||
|
||||
function isDateValid (value: string) {
|
||||
return exists(value) && validator.isISO8601(value)
|
||||
}
|
||||
|
@ -82,6 +86,7 @@ function isFileValid (
|
|||
|
||||
export {
|
||||
exists,
|
||||
isArrayOf,
|
||||
isNotEmptyIntArray,
|
||||
isArray,
|
||||
isIdValid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue