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:
parent
f0f5567b69
commit
2df82d42cb
8 changed files with 87 additions and 29 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue