mirror of https://github.com/Chocobozzz/PeerTube
Fix adding element in playlists
parent
7a30349748
commit
2b5dfa2fe0
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue