diff --git a/server/controllers/api/video-playlist.ts b/server/controllers/api/video-playlist.ts index 304f1ddfb..73362e1e3 100644 --- a/server/controllers/api/video-playlist.ts +++ b/server/controllers/api/video-playlist.ts @@ -497,7 +497,9 @@ async function generateThumbnailForPlaylist (videoPlaylist: MVideoPlaylistThumbn // Ensure the file is on disk const videoMiniaturePermanentFileCache = new VideoMiniaturePermanentFileCache() - const inputPath = await videoMiniaturePermanentFileCache.downloadRemoteFile(videoMiniature) + const inputPath = videoMiniature.isOwned() + ? videoMiniature.getPath() + : await videoMiniaturePermanentFileCache.downloadRemoteFile(videoMiniature) const thumbnailModel = await updateLocalPlaylistMiniatureFromExisting({ inputPath,