diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-03-27 20:53:11 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-03-27 20:53:11 +0200 |
commit | 6f0c39e2de400685b7baf8340b9e132f2659365a (patch) | |
tree | b036c6ebf65ff4cb7f5649fc48a0b7201370bddd /server/controllers/api/remote | |
parent | 28974889281523eec5b00dd5596c67d99c5167e5 (diff) | |
download | PeerTube-6f0c39e2de400685b7baf8340b9e132f2659365a.tar.gz PeerTube-6f0c39e2de400685b7baf8340b9e132f2659365a.tar.zst PeerTube-6f0c39e2de400685b7baf8340b9e132f2659365a.zip |
Server: add licence video attribute
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 c8ef0c445..a3e1189c7 100644 --- a/server/controllers/api/remote/videos.js +++ b/server/controllers/api/remote/videos.js | |||
@@ -295,6 +295,7 @@ function addRemoteVideo (videoToCreateData, fromPod, finalCallback) { | |||
295 | extname: videoToCreateData.extname, | 295 | extname: videoToCreateData.extname, |
296 | infoHash: videoToCreateData.infoHash, | 296 | infoHash: videoToCreateData.infoHash, |
297 | category: videoToCreateData.category, | 297 | category: videoToCreateData.category, |
298 | licence: videoToCreateData.licence, | ||
298 | description: videoToCreateData.description, | 299 | description: videoToCreateData.description, |
299 | authorId: author.id, | 300 | authorId: author.id, |
300 | duration: videoToCreateData.duration, | 301 | duration: videoToCreateData.duration, |
@@ -392,6 +393,7 @@ function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) { | |||
392 | 393 | ||
393 | videoInstance.set('name', videoAttributesToUpdate.name) | 394 | videoInstance.set('name', videoAttributesToUpdate.name) |
394 | videoInstance.set('category', videoAttributesToUpdate.category) | 395 | videoInstance.set('category', videoAttributesToUpdate.category) |
396 | videoInstance.set('licence', videoAttributesToUpdate.licence) | ||
395 | videoInstance.set('description', videoAttributesToUpdate.description) | 397 | videoInstance.set('description', videoAttributesToUpdate.description) |
396 | videoInstance.set('infoHash', videoAttributesToUpdate.infoHash) | 398 | videoInstance.set('infoHash', videoAttributesToUpdate.infoHash) |
397 | videoInstance.set('duration', videoAttributesToUpdate.duration) | 399 | videoInstance.set('duration', videoAttributesToUpdate.duration) |