Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix runner files watch

Chocobozzz66023f9c9846
diff --git a/apps/peertube-runner/src/server/process/shared/process-live.ts b/apps/peertube-runner/src/server/process/shared/process-live.ts
index c7e212afaa..d3272b346c 100644
--- a/apps/peertube-runner/src/server/process/shared/process-live.ts
+++ b/apps/peertube-runner/src/server/process/shared/process-live.ts
@@ -68,10 +68,10 @@ export class ProcessLiveRTMPHLSTranscoding {
const bitrate = await getVideoStreamBitrate(this.payload.input.rtmpUrl, probe)
const { ratio } = await getVideoStreamDimensionsInfo(this.payload.input.rtmpUrl, probe)
- const m3u8Watcher = watch(this.outputPath, { ignored: (path, stats) => stats?.isFile() && !path.endsWith('.m3u8') })
+ const m3u8Watcher = watch(this.outputPath, { ignored: path => path !== this.outputPath && !path.endsWith('.m3u8') })
this.fsWatchers.push(m3u8Watcher)
- const tsWatcher = watch(this.outputPath, { ignored: (path, stats) => stats?.isFile() && !path.endsWith('.ts') })
+ const tsWatcher = watch(this.outputPath, { ignored: path => path !== this.outputPath && !path.endsWith('.ts') })
this.fsWatchers.push(tsWatcher)
m3u8Watcher.on('change', p => {