1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Change api output for videos

This commit is contained in:
Chocobozzz 2016-03-18 16:28:09 +01:00
parent f0f5567b69
commit 2df82d42cb
8 changed files with 87 additions and 29 deletions

View file

@ -16,14 +16,14 @@ const videos = {
seedAllExisting: seedAllExisting
}
function getVideoState (video, callback) {
function getVideoState (video) {
const exist = (video !== null)
let owned = false
if (exist === true) {
owned = (video.namePath !== null)
}
return callback({ exist: exist, owned: owned })
return { exist: exist, owned: owned }
}
function seed (path, callback) {