]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
getVideoThumbnail -> createVideoThumbnail
authorChocobozzz <florian.bigard@gmail.com>
Fri, 13 May 2016 18:45:53 +0000 (20:45 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Fri, 13 May 2016 18:45:53 +0000 (20:45 +0200)
server/controllers/api/v1/videos.js
server/lib/videos.js

index 5bdfdbf5816e8a15270cb76cfc0916437232f240..641fef6ead3ef9d1e34e1b275ddc9cbcc9f004c1 100644 (file)
@@ -94,7 +94,7 @@ function addVideo (req, res, next) {
         return next(err)
       }
 
-      videos.getVideoThumbnail(videoFile.path, function (err, thumbnailName) {
+      videos.createVideoThumbnail(videoFile.path, function (err, thumbnailName) {
         if (err) {
           // TODO: unseed the video
           logger.error('Cannot make a thumbnail of the video file.')
index 7da4b11d2bb06b21ad1016575623eba944e7558c..154c31ef9e4f3537913b90bee673a30d0001edd8 100644 (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)