1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Better view handling with looped videos

This commit is contained in:
Chocobozzz 2024-07-02 09:41:33 +02:00
parent 9ee467b9cd
commit 01b3396c80
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 36 additions and 7 deletions

View file

@ -65,7 +65,10 @@ export class VideoViewerStats {
let stats: LocalViewerStats = await this.getLocalVideoViewer({ sessionId, videoId: video.id })
if (stats && stats.watchSections.length >= MAX_LOCAL_VIEWER_WATCH_SECTIONS) {
logger.warn('Too much watch section to store for a viewer, skipping this one', { currentTime, viewEvent, ...lTags(video.uuid) })
logger.warn(
'Too much watch section to store for a viewer, skipping this one',
{ sessionId, currentTime, viewEvent, ...lTags(video.uuid) }
)
return
}