1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Handle views for live videos

This commit is contained in:
Chocobozzz 2020-11-06 16:42:23 +01:00 committed by Chocobozzz
parent 529f037294
commit e4bf785617
7 changed files with 190 additions and 24 deletions

View file

@ -83,6 +83,8 @@ async function saveLive (video: MVideo, live: MVideoLive) {
await live.destroy()
video.isLive = false
// Reinit views
video.views = 0
video.state = VideoState.TO_TRANSCODE
video.duration = duration