mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Remove web video redundancy support
It's not used anymore in the player since several major versions now, so there's no point in continuing to store these video files
This commit is contained in:
parent
23cd92430f
commit
05f105d03f
32 changed files with 669 additions and 1036 deletions
|
@ -17,7 +17,7 @@ import { Mutex } from 'async-mutex'
|
|||
import { remove } from 'fs-extra/esm'
|
||||
import { extname, join } from 'path'
|
||||
import { makeHLSFileAvailable, makeWebVideoFileAvailable } from './object-storage/index.js'
|
||||
import { getHLSDirectory, getHLSRedundancyDirectory, getHlsResolutionPlaylistFilename } from './paths.js'
|
||||
import { getHLSDirectory, getHlsResolutionPlaylistFilename } from './paths.js'
|
||||
import { isVideoInPrivateDirectory } from './video-privacy.js'
|
||||
|
||||
type MakeAvailableCB <T> = (path: string) => Awaitable<T>
|
||||
|
@ -42,16 +42,6 @@ class VideoPathManager {
|
|||
return join(base, filename)
|
||||
}
|
||||
|
||||
getFSRedundancyVideoFilePath (videoOrPlaylist: MVideo | MStreamingPlaylistVideo, videoFile: MVideoFile) {
|
||||
if (videoFile.isHLS()) {
|
||||
const video = extractVideo(videoOrPlaylist)
|
||||
|
||||
return join(getHLSRedundancyDirectory(video), videoFile.filename)
|
||||
}
|
||||
|
||||
return join(CONFIG.STORAGE.REDUNDANCY_DIR, videoFile.filename)
|
||||
}
|
||||
|
||||
getFSVideoFileOutputPath (videoOrPlaylist: MVideo | MStreamingPlaylistVideo, videoFile: MVideoFile) {
|
||||
const video = extractVideo(videoOrPlaylist)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue