diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-03-22 21:15:55 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-03-22 21:25:24 +0100 |
commit | 6e07c3de88791a0b342e0cc319590048117f9c2d (patch) | |
tree | 049f88d3f6d3ec0aeea09702a583deb86d6ef78f /server/controllers/api/remote | |
parent | 2d7653dc8726185615bab66353c4e3fb8fbb5a5f (diff) | |
download | PeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.tar.gz PeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.tar.zst PeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.zip |
Add video category support
Diffstat (limited to 'server/controllers/api/remote')
-rw-r--r-- | server/controllers/api/remote/videos.js | 2 |
1 files changed, 2 insertions, 0 deletions
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) { | |||
294 | remoteId: videoToCreateData.remoteId, | 294 | remoteId: videoToCreateData.remoteId, |
295 | extname: videoToCreateData.extname, | 295 | extname: videoToCreateData.extname, |
296 | infoHash: videoToCreateData.infoHash, | 296 | infoHash: videoToCreateData.infoHash, |
297 | category: videoToCreateData.category, | ||
297 | description: videoToCreateData.description, | 298 | description: videoToCreateData.description, |
298 | authorId: author.id, | 299 | authorId: author.id, |
299 | duration: videoToCreateData.duration, | 300 | duration: videoToCreateData.duration, |
@@ -390,6 +391,7 @@ function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) { | |||
390 | const options = { transaction: t } | 391 | const options = { transaction: t } |
391 | 392 | ||
392 | videoInstance.set('name', videoAttributesToUpdate.name) | 393 | videoInstance.set('name', videoAttributesToUpdate.name) |
394 | videoInstance.set('category', videoAttributesToUpdate.category) | ||
393 | videoInstance.set('description', videoAttributesToUpdate.description) | 395 | videoInstance.set('description', videoAttributesToUpdate.description) |
394 | videoInstance.set('infoHash', videoAttributesToUpdate.infoHash) | 396 | videoInstance.set('infoHash', videoAttributesToUpdate.infoHash) |
395 | videoInstance.set('duration', videoAttributesToUpdate.duration) | 397 | videoInstance.set('duration', videoAttributesToUpdate.duration) |