diff options
Diffstat (limited to 'server/lib/paths.ts')
-rw-r--r-- | server/lib/paths.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/lib/paths.ts b/server/lib/paths.ts index 5a85bea42..b29854700 100644 --- a/server/lib/paths.ts +++ b/server/lib/paths.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { join } from 'path' | 1 | import { join } from 'path' |
2 | import { CONFIG } from '@server/initializers/config' | 2 | import { CONFIG } from '@server/initializers/config' |
3 | import { HLS_REDUNDANCY_DIRECTORY, HLS_STREAMING_PLAYLIST_DIRECTORY } from '@server/initializers/constants' | 3 | import { HLS_REDUNDANCY_DIRECTORY, HLS_STREAMING_PLAYLIST_DIRECTORY, VIDEO_LIVE } from '@server/initializers/constants' |
4 | import { isStreamingPlaylist, MStreamingPlaylistVideo, MVideo, MVideoFile, MVideoUUID } from '@server/types/models' | 4 | import { isStreamingPlaylist, MStreamingPlaylistVideo, MVideo, MVideoFile, MVideoUUID } from '@server/types/models' |
5 | import { removeFragmentedMP4Ext } from '@shared/core-utils' | 5 | import { removeFragmentedMP4Ext } from '@shared/core-utils' |
6 | import { buildUUID } from '@shared/extra-utils' | 6 | import { buildUUID } from '@shared/extra-utils' |
@@ -21,6 +21,10 @@ function getLiveDirectory (video: MVideoUUID) { | |||
21 | return getHLSDirectory(video) | 21 | return getHLSDirectory(video) |
22 | } | 22 | } |
23 | 23 | ||
24 | function getLiveReplayBaseDirectory (video: MVideoUUID) { | ||
25 | return join(getLiveDirectory(video), VIDEO_LIVE.REPLAY_DIRECTORY) | ||
26 | } | ||
27 | |||
24 | function getHLSDirectory (video: MVideoUUID) { | 28 | function getHLSDirectory (video: MVideoUUID) { |
25 | return join(HLS_STREAMING_PLAYLIST_DIRECTORY, video.uuid) | 29 | return join(HLS_STREAMING_PLAYLIST_DIRECTORY, video.uuid) |
26 | } | 30 | } |
@@ -74,6 +78,7 @@ export { | |||
74 | 78 | ||
75 | getHLSDirectory, | 79 | getHLSDirectory, |
76 | getLiveDirectory, | 80 | getLiveDirectory, |
81 | getLiveReplayBaseDirectory, | ||
77 | getHLSRedundancyDirectory, | 82 | getHLSRedundancyDirectory, |
78 | 83 | ||
79 | generateHLSMasterPlaylistFilename, | 84 | generateHLSMasterPlaylistFilename, |