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:
parent
210feb6cc4
commit
5fb6996b81
3 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue