aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-06-19 14:29:34 +0200
committerChocobozzz <me@florianbigard.com>2023-06-29 10:19:55 +0200
commit2b5dfa2fe00a433ff59c4ca922600f3d860e0903 (patch)
tree752de0e8d62f07e6d2220fbb17777d07acdd4ea8 /server/controllers
parent7a303497489950328667332ce0ed8841d6dfa19e (diff)
downloadPeerTube-2b5dfa2fe00a433ff59c4ca922600f3d860e0903.tar.gz
PeerTube-2b5dfa2fe00a433ff59c4ca922600f3d860e0903.tar.zst
PeerTube-2b5dfa2fe00a433ff59c4ca922600f3d860e0903.zip
Fix adding element in playlists
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/video-playlist.ts4
1 files changed, 3 insertions, 1 deletions
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
497 497
498 // Ensure the file is on disk 498 // Ensure the file is on disk
499 const videoMiniaturePermanentFileCache = new VideoMiniaturePermanentFileCache() 499 const videoMiniaturePermanentFileCache = new VideoMiniaturePermanentFileCache()
500 const inputPath = await videoMiniaturePermanentFileCache.downloadRemoteFile(videoMiniature) 500 const inputPath = videoMiniature.isOwned()
501 ? videoMiniature.getPath()
502 : await videoMiniaturePermanentFileCache.downloadRemoteFile(videoMiniature)
501 503
502 const thumbnailModel = await updateLocalPlaylistMiniatureFromExisting({ 504 const thumbnailModel = await updateLocalPlaylistMiniatureFromExisting({
503 inputPath, 505 inputPath,