diff options
Diffstat (limited to 'server/lib/live-manager.ts')
-rw-r--r-- | server/lib/live-manager.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/lib/live-manager.ts b/server/lib/live-manager.ts index ef50e3cdb..5d9b68756 100644 --- a/server/lib/live-manager.ts +++ b/server/lib/live-manager.ts | |||
@@ -287,16 +287,17 @@ class LiveManager { | |||
287 | for (let i = 0; i < allResolutions.length; i++) { | 287 | for (let i = 0; i < allResolutions.length; i++) { |
288 | const resolution = allResolutions[i] | 288 | const resolution = allResolutions[i] |
289 | 289 | ||
290 | VideoFileModel.upsert({ | 290 | const file = new VideoFileModel({ |
291 | resolution, | 291 | resolution, |
292 | size: -1, | 292 | size: -1, |
293 | extname: '.ts', | 293 | extname: '.ts', |
294 | infoHash: null, | 294 | infoHash: null, |
295 | fps, | 295 | fps, |
296 | videoStreamingPlaylistId: playlist.id | 296 | videoStreamingPlaylistId: playlist.id |
297 | }).catch(err => { | ||
298 | logger.error('Cannot create file for live streaming.', { err }) | ||
299 | }) | 297 | }) |
298 | |||
299 | VideoFileModel.customUpsert(file, 'streaming-playlist', null) | ||
300 | .catch(err => logger.error('Cannot create file for live streaming.', { err })) | ||
300 | } | 301 | } |
301 | 302 | ||
302 | const outPath = getHLSDirectory(videoLive.Video) | 303 | const outPath = getHLSDirectory(videoLive.Video) |