aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/videos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-03-18 16:28:09 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-03-18 16:28:09 +0100
commit2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70 (patch)
tree9c177f135a121ee34ed2e4f529dd2cacc3ad3f87 /server/lib/videos.js
parentf0f5567b6918fc60c8cab15e13aec03a89a91dfb (diff)
downloadPeerTube-2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70.tar.gz
PeerTube-2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70.tar.zst
PeerTube-2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70.zip
Change api output for videos
Diffstat (limited to 'server/lib/videos.js')
-rw-r--r--server/lib/videos.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/videos.js b/server/lib/videos.js
index eb3a0125a..24178561d 100644
--- a/server/lib/videos.js
+++ b/server/lib/videos.js
@@ -16,14 +16,14 @@ const videos = {
16 seedAllExisting: seedAllExisting 16 seedAllExisting: seedAllExisting
17} 17}
18 18
19function getVideoState (video, callback) { 19function getVideoState (video) {
20 const exist = (video !== null) 20 const exist = (video !== null)
21 let owned = false 21 let owned = false
22 if (exist === true) { 22 if (exist === true) {
23 owned = (video.namePath !== null) 23 owned = (video.namePath !== null)
24 } 24 }
25 25
26 return callback({ exist: exist, owned: owned }) 26 return { exist: exist, owned: owned }
27} 27}
28 28
29function seed (path, callback) { 29function seed (path, callback) {