From 3a8a8b51228070d8e6a01ea6e460534aa0a20efc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 3 May 2016 22:41:46 +0200 Subject: Video duration support (server) --- server/helpers/customValidators.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/helpers') 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) { 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) }) } -- cgit v1.2.3