aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/remote/videos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-04-07 12:13:37 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-04-07 12:13:37 +0200
commit3092476e64d09b449b4ad4f5198024afec1b22ca (patch)
treef2d2bd33578e122188cd2297f60e12813bffdbb7 /server/controllers/api/remote/videos.js
parent023553a2bde74c5765b5ea679fc04128c27f18a0 (diff)
downloadPeerTube-3092476e64d09b449b4ad4f5198024afec1b22ca.tar.gz
PeerTube-3092476e64d09b449b4ad4f5198024afec1b22ca.tar.zst
PeerTube-3092476e64d09b449b4ad4f5198024afec1b22ca.zip
Server: add video language attribute
Diffstat (limited to 'server/controllers/api/remote/videos.js')
-rw-r--r--server/controllers/api/remote/videos.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/api/remote/videos.js b/server/controllers/api/remote/videos.js
index ea1eeb146..e54793628 100644
--- a/server/controllers/api/remote/videos.js
+++ b/server/controllers/api/remote/videos.js
@@ -296,6 +296,7 @@ function addRemoteVideo (videoToCreateData, fromPod, finalCallback) {
296 infoHash: videoToCreateData.infoHash, 296 infoHash: videoToCreateData.infoHash,
297 category: videoToCreateData.category, 297 category: videoToCreateData.category,
298 licence: videoToCreateData.licence, 298 licence: videoToCreateData.licence,
299 language: videoToCreateData.language,
299 nsfw: videoToCreateData.nsfw, 300 nsfw: videoToCreateData.nsfw,
300 description: videoToCreateData.description, 301 description: videoToCreateData.description,
301 authorId: author.id, 302 authorId: author.id,
@@ -395,6 +396,7 @@ function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) {
395 videoInstance.set('name', videoAttributesToUpdate.name) 396 videoInstance.set('name', videoAttributesToUpdate.name)
396 videoInstance.set('category', videoAttributesToUpdate.category) 397 videoInstance.set('category', videoAttributesToUpdate.category)
397 videoInstance.set('licence', videoAttributesToUpdate.licence) 398 videoInstance.set('licence', videoAttributesToUpdate.licence)
399 videoInstance.set('language', videoAttributesToUpdate.language)
398 videoInstance.set('nsfw', videoAttributesToUpdate.nsfw) 400 videoInstance.set('nsfw', videoAttributesToUpdate.nsfw)
399 videoInstance.set('description', videoAttributesToUpdate.description) 401 videoInstance.set('description', videoAttributesToUpdate.description)
400 videoInstance.set('infoHash', videoAttributesToUpdate.infoHash) 402 videoInstance.set('infoHash', videoAttributesToUpdate.infoHash)