aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-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) {