aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/live-manager.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-06 16:43:43 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commitc655c9ef6f7ddb47a153adc04d5c10c6de3d5ed7 (patch)
tree7ccb6a7c97345747dde6c53fcd10c488140c7998 /server/lib/live-manager.ts
parente4bf78561763cd84d22ebceb6f371cccf9a356d8 (diff)
downloadPeerTube-c655c9ef6f7ddb47a153adc04d5c10c6de3d5ed7.tar.gz
PeerTube-c655c9ef6f7ddb47a153adc04d5c10c6de3d5ed7.tar.zst
PeerTube-c655c9ef6f7ddb47a153adc04d5c10c6de3d5ed7.zip
Update ffmpeg static version for tests
Diffstat (limited to 'server/lib/live-manager.ts')
-rw-r--r--server/lib/live-manager.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/lib/live-manager.ts b/server/lib/live-manager.ts
index 4a1081a4f..e85998686 100644
--- a/server/lib/live-manager.ts
+++ b/server/lib/live-manager.ts
@@ -4,6 +4,7 @@ import * as chokidar from 'chokidar'
4import { FfmpegCommand } from 'fluent-ffmpeg' 4import { FfmpegCommand } from 'fluent-ffmpeg'
5import { ensureDir, stat } from 'fs-extra' 5import { ensureDir, stat } from 'fs-extra'
6import { basename } from 'path' 6import { basename } from 'path'
7import { isTestInstance } from '@server/helpers/core-utils'
7import { 8import {
8 computeResolutionsToTranscode, 9 computeResolutionsToTranscode,
9 getVideoFileFPS, 10 getVideoFileFPS,
@@ -451,7 +452,7 @@ class LiveManager {
451 private async updateLiveViews () { 452 private async updateLiveViews () {
452 if (!this.isRunning()) return 453 if (!this.isRunning()) return
453 454
454 logger.info('Updating live video views.') 455 if (!isTestInstance()) logger.info('Updating live video views.')
455 456
456 for (const videoId of this.watchersPerVideo.keys()) { 457 for (const videoId of this.watchersPerVideo.keys()) {
457 const notBefore = new Date().getTime() - VIEW_LIFETIME.LIVE 458 const notBefore = new Date().getTime() - VIEW_LIFETIME.LIVE