ActivityPub-federated video streaming platform using P2P directly in your web browser
getVideoThumbnail -> createVideoThumbnail
Chocobozzz57a56079fe92
diff --git a/server/controllers/api/v1/videos.js b/server/controllers/api/v1/videos.jsindex 5bdfdbf581..641fef6ead 100644--- a/server/controllers/api/v1/videos.js+++ b/server/controllers/api/v1/videos.js@@ -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 videologger.error('Cannot make a thumbnail of the video file.')diff --git a/server/lib/videos.js b/server/lib/videos.jsindex 7da4b11d2b..154c31ef9e 100644--- a/server/lib/videos.js+++ b/server/lib/videos.js@@ -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)