diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-24 09:34:56 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-24 09:57:55 +0200 |
commit | 92083e42289e19033425672dfbe2234aef03c6df (patch) | |
tree | 01746b73d351f2a44932794549532b6a5ead1cbd /server/lib/live/live-manager.ts | |
parent | 383dbdec67fc474652c4e59440238da0b2fb6e8c (diff) | |
download | PeerTube-92083e42289e19033425672dfbe2234aef03c6df.tar.gz PeerTube-92083e42289e19033425672dfbe2234aef03c6df.tar.zst PeerTube-92083e42289e19033425672dfbe2234aef03c6df.zip |
Fix removed sha segments on fast restream
Diffstat (limited to 'server/lib/live/live-manager.ts')
-rw-r--r-- | server/lib/live/live-manager.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts index f2f064b49..d499b4b1a 100644 --- a/server/lib/live/live-manager.ts +++ b/server/lib/live/live-manager.ts | |||
@@ -27,7 +27,6 @@ import { JobQueue } from '../job-queue' | |||
27 | import { generateHLSMasterPlaylistFilename, generateHlsSha256SegmentsFilename, getLiveReplayBaseDirectory } from '../paths' | 27 | import { generateHLSMasterPlaylistFilename, generateHlsSha256SegmentsFilename, getLiveReplayBaseDirectory } from '../paths' |
28 | import { PeerTubeSocket } from '../peertube-socket' | 28 | import { PeerTubeSocket } from '../peertube-socket' |
29 | import { LiveQuotaStore } from './live-quota-store' | 29 | import { LiveQuotaStore } from './live-quota-store' |
30 | import { LiveSegmentShaStore } from './live-segment-sha-store' | ||
31 | import { cleanupPermanentLive } from './live-utils' | 30 | import { cleanupPermanentLive } from './live-utils' |
32 | import { MuxingSession } from './shared' | 31 | import { MuxingSession } from './shared' |
33 | 32 | ||
@@ -219,9 +218,7 @@ class LiveManager { | |||
219 | return this.abortSession(sessionId) | 218 | return this.abortSession(sessionId) |
220 | } | 219 | } |
221 | 220 | ||
222 | // Cleanup old potential live files (could happen with a permanent live) | 221 | // Cleanup old potential live (could happen with a permanent live) |
223 | LiveSegmentShaStore.Instance.cleanupShaSegments(video.uuid) | ||
224 | |||
225 | const oldStreamingPlaylist = await VideoStreamingPlaylistModel.loadHLSPlaylistByVideo(video.id) | 222 | const oldStreamingPlaylist = await VideoStreamingPlaylistModel.loadHLSPlaylistByVideo(video.id) |
226 | if (oldStreamingPlaylist) { | 223 | if (oldStreamingPlaylist) { |
227 | if (!videoLive.permanentLive) throw new Error('Found previous session in a non permanent live: ' + video.uuid) | 224 | if (!videoLive.permanentLive) throw new Error('Found previous session in a non permanent live: ' + video.uuid) |