1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

getVideoThumbnail -> createVideoThumbnail

This commit is contained in:
Chocobozzz 2016-05-13 20:45:53 +02:00
parent bb10240ee1
commit 57a56079fe
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ const videos = {
createRemoteVideos: createRemoteVideos,
getVideoDuration: getVideoDuration,
getVideoState: getVideoState,
getVideoThumbnail: getVideoThumbnail,
createVideoThumbnail: createVideoThumbnail,
removeVideosDataFromDisk: removeVideosDataFromDisk,
removeRemoteVideos: removeRemoteVideos,
seed: seed,
@ -54,7 +54,7 @@ function getVideoState (video) {
return { exist: exist, owned: owned }
}
function getVideoThumbnail (videoPath, callback) {
function createVideoThumbnail (videoPath, callback) {
const filename = pathUtils.basename(videoPath) + '.jpg'
ffmpeg(videoPath)
.on('error', callback)