From 53c06121a45a2ec943002833a0152bbfd4856ee4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 18 Feb 2021 14:06:12 +0100 Subject: Fix import tests --- server/lib/thumbnail.ts | 2 +- server/lib/video-paths.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server/lib') diff --git a/server/lib/thumbnail.ts b/server/lib/thumbnail.ts index e37aefc85..06066f910 100644 --- a/server/lib/thumbnail.ts +++ b/server/lib/thumbnail.ts @@ -74,7 +74,7 @@ function createVideoMiniatureFromUrl (options: { ? existingThumbnail.fileUrl : null - // If the thumbnail URL did not change and has a unique filename (introduced in 3.2), avoid thumbnail processing + // If the thumbnail URL did not change and has a unique filename (introduced in 3.1), avoid thumbnail processing const thumbnailUrlChanged = !existingUrl || existingUrl !== downloadUrl || downloadUrl.endsWith(`${video.uuid}.jpg`) // Do not change the thumbnail filename if the file did not change diff --git a/server/lib/video-paths.ts b/server/lib/video-paths.ts index 0385e89cc..1708c479a 100644 --- a/server/lib/video-paths.ts +++ b/server/lib/video-paths.ts @@ -9,7 +9,7 @@ import { isStreamingPlaylist, MStreamingPlaylist, MStreamingPlaylistVideo, MVide function generateVideoFilename (videoOrPlaylist: MVideo | MStreamingPlaylistVideo, isHls: boolean, resolution: number, extname: string) { const video = extractVideo(videoOrPlaylist) - // FIXME: use a generated uuid instead, that will break compatibility with PeerTube < 3.2 + // FIXME: use a generated uuid instead, that will break compatibility with PeerTube < 3.1 // const uuid = uuidv4() const uuid = video.uuid @@ -69,7 +69,7 @@ function generateTorrentFileName (videoOrPlaylist: MVideo | MStreamingPlaylistVi const video = extractVideo(videoOrPlaylist) const extension = '.torrent' - // FIXME: use a generated uuid instead, that will break compatibility with PeerTube < 3.2 + // FIXME: use a generated uuid instead, that will break compatibility with PeerTube < 3.1 // const uuid = uuidv4() const uuid = video.uuid -- cgit v1.2.3