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/models/videos.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server/models') diff --git a/server/models/videos.js b/server/models/videos.js index 13ef2295a..e02158be7 100644 --- a/server/models/videos.js +++ b/server/models/videos.js @@ -22,7 +22,8 @@ const videosSchema = mongoose.Schema({ description: String, magnetUri: String, podUrl: String, - author: String + author: String, + duration: Number }) const VideosDB = mongoose.model('videos', videosSchema) @@ -72,7 +73,8 @@ function addRemotes (videos, callback) { namePath: null, description: video.description, magnetUri: video.magnetUri, - podUrl: video.podUrl + podUrl: video.podUrl, + duration: video.duration } to_add.push(params) -- cgit v1.2.3