Fix adding element in playlists

pull/5870/head
Chocobozzz 2023-06-19 14:29:34 +02:00
parent 7a30349748
commit 2b5dfa2fe0
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -497,7 +497,9 @@ async function generateThumbnailForPlaylist (videoPlaylist: MVideoPlaylistThumbn
// Ensure the file is on disk // Ensure the file is on disk
const videoMiniaturePermanentFileCache = new VideoMiniaturePermanentFileCache() const videoMiniaturePermanentFileCache = new VideoMiniaturePermanentFileCache()
const inputPath = await videoMiniaturePermanentFileCache.downloadRemoteFile(videoMiniature) const inputPath = videoMiniature.isOwned()
? videoMiniature.getPath()
: await videoMiniaturePermanentFileCache.downloadRemoteFile(videoMiniature)
const thumbnailModel = await updateLocalPlaylistMiniatureFromExisting({ const thumbnailModel = await updateLocalPlaylistMiniatureFromExisting({
inputPath, inputPath,