Support isLive

This commit is contained in:
Chocobozzz 2021-01-18 15:22:14 +01:00
parent 099034dbdb
commit ec63eb0b51
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 7 additions and 2 deletions

@ -1 +1 @@
Subproject commit b2c76204f9d2900b9fd58e6618e343059821d601
Subproject commit 969e59d17d584baf695cf9a7d6122283518386a7

View File

@ -27,7 +27,6 @@ instances-index:
- 'tube.nah.re'
- 'peertube.parleur.net'
- 'video.passageenseine.fr'
- 'peertube.su'
api:
blacklist:

View File

@ -363,7 +363,9 @@ function formatVideoForDB (v: IndexableVideo | IndexableVideoDetails): DBVideo |
likes: v.likes,
dislikes: v.dislikes,
isLive: v.isLive || false,
nsfw: v.nsfw,
host: v.host,
url: v.url,
@ -447,6 +449,7 @@ function formatVideoForAPI (v: DBVideoDetails, fromHost?: string): EnhancedVideo
likes: v.likes,
dislikes: v.dislikes,
isLive: v.isLive,
nsfw: v.nsfw,
account: {
@ -626,6 +629,9 @@ function buildVideosMapping () {
nsfw: {
type: 'boolean'
},
isLive: {
type: 'boolean'
},
host: {
type: 'keyword'