From 053aed43fb255b4ae4324a845534f2f562c3b6cc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 Nov 2020 10:57:40 +0100 Subject: Regenerate miniature on live save --- server/lib/video-paths.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/video-paths.ts') diff --git a/server/lib/video-paths.ts b/server/lib/video-paths.ts index b6cb39d25..53fc8e81d 100644 --- a/server/lib/video-paths.ts +++ b/server/lib/video-paths.ts @@ -9,7 +9,7 @@ import { extractVideo } from '@server/helpers/video' function getVideoFilename (videoOrPlaylist: MVideo | MStreamingPlaylistVideo, videoFile: MVideoFile) { const video = extractVideo(videoOrPlaylist) - if (isStreamingPlaylist(videoOrPlaylist)) { + if (videoFile.isHLS()) { return generateVideoStreamingPlaylistName(video.uuid, videoFile.resolution) } @@ -25,7 +25,7 @@ function generateWebTorrentVideoName (uuid: string, resolution: number, extname: } function getVideoFilePath (videoOrPlaylist: MVideo | MStreamingPlaylistVideo, videoFile: MVideoFile, isRedundancy = false) { - if (isStreamingPlaylist(videoOrPlaylist)) { + if (videoFile.isHLS()) { const video = extractVideo(videoOrPlaylist) return join(getHLSDirectory(video), getVideoFilename(videoOrPlaylist, videoFile)) -- cgit v1.2.3