1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add default playlist image

This commit is contained in:
Chocobozzz 2019-04-24 11:10:42 +02:00
parent 210feb6cc4
commit 5fb6996b81
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 7 additions and 2 deletions

View file

@ -304,7 +304,7 @@ async function addVideoInPlaylist (req: express.Request, res: express.Response)
})
// If the user did not set a thumbnail, automatically take the video thumbnail
if (playlistElement.position === 1 && videoPlaylist.hasThumbnail() === false) {
if (videoPlaylist.hasThumbnail() === false) {
logger.info('Generating default thumbnail to playlist %s.', videoPlaylist.url)
const inputPath = join(CONFIG.STORAGE.THUMBNAILS_DIR, video.getMiniature().filename)