aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-24 11:10:42 +0200
committerChocobozzz <me@florianbigard.com>2019-04-24 16:26:23 +0200
commit5fb6996b811a0cf266750d3c82e876079c8bc19e (patch)
tree1e76a42f6e1d28e3abbe0f576b9339fc6ff908fa /server/controllers
parent210feb6cc484a6c5c63c98f770de34e223f944cb (diff)
downloadPeerTube-5fb6996b811a0cf266750d3c82e876079c8bc19e.tar.gz
PeerTube-5fb6996b811a0cf266750d3c82e876079c8bc19e.tar.zst
PeerTube-5fb6996b811a0cf266750d3c82e876079c8bc19e.zip
Add default playlist image
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/video-playlist.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/video-playlist.ts b/server/controllers/api/video-playlist.ts
index 6a1d23529..a17136401 100644
--- a/server/controllers/api/video-playlist.ts
+++ b/server/controllers/api/video-playlist.ts
@@ -304,7 +304,7 @@ async function addVideoInPlaylist (req: express.Request, res: express.Response)
304 }) 304 })
305 305
306 // If the user did not set a thumbnail, automatically take the video thumbnail 306 // If the user did not set a thumbnail, automatically take the video thumbnail
307 if (playlistElement.position === 1 && videoPlaylist.hasThumbnail() === false) { 307 if (videoPlaylist.hasThumbnail() === false) {
308 logger.info('Generating default thumbnail to playlist %s.', videoPlaylist.url) 308 logger.info('Generating default thumbnail to playlist %s.', videoPlaylist.url)
309 309
310 const inputPath = join(CONFIG.STORAGE.THUMBNAILS_DIR, video.getMiniature().filename) 310 const inputPath = join(CONFIG.STORAGE.THUMBNAILS_DIR, video.getMiniature().filename)