1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Playlist server API

This commit is contained in:
Chocobozzz 2019-02-26 10:55:40 +01:00 committed by Chocobozzz
parent b427febb4d
commit 418d092afa
63 changed files with 2758 additions and 226 deletions

View file

@ -28,6 +28,9 @@ function activityPubContextify <T> (data: T) {
state: 'sc:Number',
size: 'sc:Number',
fps: 'sc:Number',
startTimestamp: 'sc:Number',
stopTimestamp: 'sc:Number',
position: 'sc:Number',
commentsEnabled: 'sc:Boolean',
downloadEnabled: 'sc:Boolean',
waitTranscoding: 'sc:Boolean',
@ -46,6 +49,10 @@ function activityPubContextify <T> (data: T) {
'@id': 'as:dislikes',
'@type': '@id'
},
playlists: {
'@id': 'pt:playlists',
'@type': '@id'
},
shares: {
'@id': 'as:shares',
'@type': '@id'
@ -67,7 +74,7 @@ async function activityPubCollectionPagination (baseUrl: string, handler: Activi
return {
id: baseUrl,
type: 'OrderedCollection',
type: 'OrderedCollectionPage',
totalItems: result.total,
first: baseUrl + '?page=1'
}