From 6e07c3de88791a0b342e0cc319590048117f9c2d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 22 Mar 2017 21:15:55 +0100 Subject: Add video category support --- server/controllers/api/remote/videos.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/controllers/api/remote/videos.js') diff --git a/server/controllers/api/remote/videos.js b/server/controllers/api/remote/videos.js index cbd58e0e4..c8ef0c445 100644 --- a/server/controllers/api/remote/videos.js +++ b/server/controllers/api/remote/videos.js @@ -294,6 +294,7 @@ function addRemoteVideo (videoToCreateData, fromPod, finalCallback) { remoteId: videoToCreateData.remoteId, extname: videoToCreateData.extname, infoHash: videoToCreateData.infoHash, + category: videoToCreateData.category, description: videoToCreateData.description, authorId: author.id, duration: videoToCreateData.duration, @@ -390,6 +391,7 @@ function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) { const options = { transaction: t } videoInstance.set('name', videoAttributesToUpdate.name) + videoInstance.set('category', videoAttributesToUpdate.category) videoInstance.set('description', videoAttributesToUpdate.description) videoInstance.set('infoHash', videoAttributesToUpdate.infoHash) videoInstance.set('duration', videoAttributesToUpdate.duration) -- cgit v1.2.3