mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Video duration support (server)
This commit is contained in:
parent
6d8ada5f24
commit
3a8a8b5122
7 changed files with 78 additions and 22 deletions
|
@ -13,7 +13,8 @@ function eachIsRemoteVideosAddValid (values) {
|
|||
return validator.isLength(val.name, 1, 50) &&
|
||||
validator.isLength(val.description, 1, 50) &&
|
||||
validator.isLength(val.magnetUri, 10) &&
|
||||
validator.isURL(val.podUrl)
|
||||
validator.isURL(val.podUrl) &&
|
||||
!isNaN(val.duration)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue