diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/api/video-playlist.ts | 2 |
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) |