aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/thumbnail.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-18 14:06:12 +0100
committerChocobozzz <me@florianbigard.com>2021-02-18 14:08:16 +0100
commit53c06121a45a2ec943002833a0152bbfd4856ee4 (patch)
treee934d6ac102d5f7b29fe3316f57d6d2164aceeb9 /server/lib/thumbnail.ts
parent8efc27bf14f1fe3ed23cd8a6d2de1f0918a7f769 (diff)
downloadPeerTube-53c06121a45a2ec943002833a0152bbfd4856ee4.tar.gz
PeerTube-53c06121a45a2ec943002833a0152bbfd4856ee4.tar.zst
PeerTube-53c06121a45a2ec943002833a0152bbfd4856ee4.zip
Fix import tests
Diffstat (limited to 'server/lib/thumbnail.ts')
-rw-r--r--server/lib/thumbnail.ts2
1 files changed, 1 insertions, 1 deletions
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: {
74 ? existingThumbnail.fileUrl 74 ? existingThumbnail.fileUrl
75 : null 75 : null
76 76
77 // If the thumbnail URL did not change and has a unique filename (introduced in 3.2), avoid thumbnail processing 77 // If the thumbnail URL did not change and has a unique filename (introduced in 3.1), avoid thumbnail processing
78 const thumbnailUrlChanged = !existingUrl || existingUrl !== downloadUrl || downloadUrl.endsWith(`${video.uuid}.jpg`) 78 const thumbnailUrlChanged = !existingUrl || existingUrl !== downloadUrl || downloadUrl.endsWith(`${video.uuid}.jpg`)
79 79
80 // Do not change the thumbnail filename if the file did not change 80 // Do not change the thumbnail filename if the file did not change