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' - 'tube.nah.re'
- 'peertube.parleur.net' - 'peertube.parleur.net'
- 'video.passageenseine.fr' - 'video.passageenseine.fr'
- 'peertube.su'
api: api:
blacklist: blacklist:

View File

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