diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-03 22:41:46 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-03 22:41:46 +0200 |
commit | 3a8a8b51228070d8e6a01ea6e460534aa0a20efc (patch) | |
tree | 00dadc882a50079ea29b28078ed45a8efc4fec3d /server/helpers/customValidators.js | |
parent | 6d8ada5f24b245d3c84d29d65013f5315cbeff27 (diff) | |
download | PeerTube-3a8a8b51228070d8e6a01ea6e460534aa0a20efc.tar.gz PeerTube-3a8a8b51228070d8e6a01ea6e460534aa0a20efc.tar.zst PeerTube-3a8a8b51228070d8e6a01ea6e460534aa0a20efc.zip |
Video duration support (server)
Diffstat (limited to 'server/helpers/customValidators.js')
-rw-r--r-- | server/helpers/customValidators.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/customValidators.js b/server/helpers/customValidators.js index a5ae32780..0fbabab52 100644 --- a/server/helpers/customValidators.js +++ b/server/helpers/customValidators.js | |||
@@ -13,7 +13,8 @@ function eachIsRemoteVideosAddValid (values) { | |||
13 | return validator.isLength(val.name, 1, 50) && | 13 | return validator.isLength(val.name, 1, 50) && |
14 | validator.isLength(val.description, 1, 50) && | 14 | validator.isLength(val.description, 1, 50) && |
15 | validator.isLength(val.magnetUri, 10) && | 15 | validator.isLength(val.magnetUri, 10) && |
16 | validator.isURL(val.podUrl) | 16 | validator.isURL(val.podUrl) && |
17 | !isNaN(val.duration) | ||
17 | }) | 18 | }) |
18 | } | 19 | } |
19 | 20 | ||