-import { copy } from 'fs-extra'
import { join } from 'path'
-import { logger } from '@server/helpers/logger'
+
import { ThumbnailType } from '../../shared/models/videos/thumbnail.type'
import { generateImageFromVideoFile } from '../helpers/ffmpeg-utils'
import { processImage } from '../helpers/image-utils'
? 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