Fix adding element in playlists
This commit is contained in:
parent
7a30349748
commit
2b5dfa2fe0
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue