mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
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
Block a user