]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/video-paths.ts
Live streaming implementation first step
[github/Chocobozzz/PeerTube.git] / server / lib / video-paths.ts
index a35661f02823c88ad847eef944a9769ae3aa0979..b6cb39d25ad9e6a4112299ff00afd406ded9c110 100644 (file)
@@ -27,7 +27,8 @@ function generateWebTorrentVideoName (uuid: string, resolution: number, extname:
 function getVideoFilePath (videoOrPlaylist: MVideo | MStreamingPlaylistVideo, videoFile: MVideoFile, isRedundancy = false) {
   if (isStreamingPlaylist(videoOrPlaylist)) {
     const video = extractVideo(videoOrPlaylist)
-    return join(HLS_STREAMING_PLAYLIST_DIRECTORY, video.uuid, getVideoFilename(videoOrPlaylist, videoFile))
+
+    return join(getHLSDirectory(video), getVideoFilename(videoOrPlaylist, videoFile))
   }
 
   const baseDir = isRedundancy ? CONFIG.STORAGE.REDUNDANCY_DIR : CONFIG.STORAGE.VIDEOS_DIR