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:
parent
b427febb4d
commit
418d092afa
63 changed files with 2758 additions and 226 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue