diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 20:45:53 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 20:45:53 +0200 |
commit | 57a56079fe927f99592a3defa2ba17586a6fe14c (patch) | |
tree | c35aeca04455578653a9dc276711b54bcc647c72 /server/lib | |
parent | bb10240ee15d31a1cc17c0e3d748dde817e7d0cb (diff) | |
download | PeerTube-57a56079fe927f99592a3defa2ba17586a6fe14c.tar.gz PeerTube-57a56079fe927f99592a3defa2ba17586a6fe14c.tar.zst PeerTube-57a56079fe927f99592a3defa2ba17586a6fe14c.zip |
getVideoThumbnail -> createVideoThumbnail
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/videos.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/videos.js b/server/lib/videos.js index 7da4b11d2..154c31ef9 100644 --- a/server/lib/videos.js +++ b/server/lib/videos.js | |||
@@ -20,7 +20,7 @@ const videos = { | |||
20 | createRemoteVideos: createRemoteVideos, | 20 | createRemoteVideos: createRemoteVideos, |
21 | getVideoDuration: getVideoDuration, | 21 | getVideoDuration: getVideoDuration, |
22 | getVideoState: getVideoState, | 22 | getVideoState: getVideoState, |
23 | getVideoThumbnail: getVideoThumbnail, | 23 | createVideoThumbnail: createVideoThumbnail, |
24 | removeVideosDataFromDisk: removeVideosDataFromDisk, | 24 | removeVideosDataFromDisk: removeVideosDataFromDisk, |
25 | removeRemoteVideos: removeRemoteVideos, | 25 | removeRemoteVideos: removeRemoteVideos, |
26 | seed: seed, | 26 | seed: seed, |
@@ -54,7 +54,7 @@ function getVideoState (video) { | |||
54 | return { exist: exist, owned: owned } | 54 | return { exist: exist, owned: owned } |
55 | } | 55 | } |
56 | 56 | ||
57 | function getVideoThumbnail (videoPath, callback) { | 57 | function createVideoThumbnail (videoPath, callback) { |
58 | const filename = pathUtils.basename(videoPath) + '.jpg' | 58 | const filename = pathUtils.basename(videoPath) + '.jpg' |
59 | ffmpeg(videoPath) | 59 | ffmpeg(videoPath) |
60 | .on('error', callback) | 60 | .on('error', callback) |