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:
parent
529f037294
commit
e4bf785617
7 changed files with 190 additions and 24 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue